MyBB Community Forums

Full Version: Fatal Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:Fatal error: Trying to clone an uncloneable object of class mysqli in /path/to/forum/inc/db_mysqli.php on line 88

http://forum.uigame.info/
I am not sure what caused this because it was working yesterday and now it has a fatal error. Any information would be useful. I looked through the forums to see if there were any errors like this and I have seen none reported. I have not modified this file in any way, so I was wondering what could cause it.
What's on line 88 in that file?

Did you change anything in your database, like the password or name?
Not that I know of. I haven't touched anything since yesterday.

lines 86 to 90
Quote:function connect($hostname="localhost", $username="root", $password="", $pconnect=0)
{
$this->link = @mysqli_connect($hostname, $username, $password) or $this->dberror();
return $this->link;
}

--> line 88
$this->link = @mysqli_connect($hostname, $username, $password) or $this->dberror();
It seems to be caused by "zend.ze1_compatibility_mode" being on in php.inf.
Try and change in inc/config.php
$config['dbtype'] = 'mysqli';
to
$config['dbtype'] = 'mysql';

Alternativly you could try adding:
ini_set('zend.ze1_compatibility_mode', '0');
below
error_reporting(E_ALL & ~E_NOTICE);
in init.php.
Thanks, the first part worked. Smile