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 jeremybu...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php