Sunday, November 4, 2012

RE: MySQL errors within error.log

-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Jeremy Burns | Class Outfit
Sent: Sunday, May 22, 2011 8:37 AM
To: cake-php@googlegroups.com
Subject: Re: MySQL errors within error.log

Not sure this is definitive, but I have seen that before when the connection
to the database was down; for example when we were having some server
troubles.

Jeremy Burns
Class Outfit

jeremyburns@classoutfit.com
http://www.classoutfit.com

On 21 May 2011, at 23:21, Miles J wrote:

> So lately I have been getting quite a few MySQL errors in my tmp/
> error.log. I went through a lot of my code and made sure I wasn't
> doing anything wrong, still happening. Most of the errors are the
> following:
>
> 2011-05-19 22:57:42 Warning: Warning (2): mysqli_query() expects
> parameter 1 to be mysqli, boolean given in [/var/www/cake/cake/libs/
> model/datasources/dbo/dbo_mysqli.php, line 115]
>
> 2011-05-19 22:57:42 Warning: Warning (2): mysqli_errno() expects
> parameter 1 to be mysqli, boolean given in [/var/www/cake/cake/libs/
> model/datasources/dbo/dbo_mysqli.php, line 214]
>
> 2011-05-19 22:57:42 Warning: Warning (2): array_keys() expects
> parameter 1 to be array, boolean given in [/var/www/cake/cake/libs/
> model/datasources/dbo_source.php, line 1953]
>
> 2011-05-19 22:57:42 Warning: Warning (2): Invalid argument supplied
> for foreach() in [/var/www/cake/cake/libs/model/datasources/dbo/
> dbo_mysql.php, line 127]
>
> And here are lines 115 and 214 from dbo_mysqli.php
>
> 115: return mysqli_query($this->connection, $sql);
> 214: if (mysqli_errno($this->connection)) {
>
> Now, does anybody know why $this->connection would actually be a
> boolean instead of the MySQLi object? I am a bit lost on why that is
> happening.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group
at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate