MyBB Community Forums

Full Version: MySQL error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
what plugins did you installed?
(2008-07-05, 01:18 PM)pepotiger Wrote: [ -> ]what plugins did you installed?

Thats all i have:
[Image: pluginswm5.th.jpg]
Not quite sure what's happening. Have a feeling it's some shutdown issue, or the DB not closing.

Are you using MySQLi?
If so, try this, open up inc/db_mysqli.php, find:
if($this->error() && !$hideerr)
Replace with:
if($this->errno() && !$hideerr)
I did like you said but nothing has changed.
(2008-07-06, 07:45 AM)ZiNgA BuRgA Wrote: [ -> ]Are you using MySQLi?
I'm guessing yes?

Otherwise, I can't think of much - this certainly isn't standard behaviour. If you want me, I can debug this issue for you, however, I'll require you to PM me FTP and administrator details if you want me to do this for you.
i have sent you PM
Okay, I think I've got this one.
It appears to be an issue with your modification to inc/config.php.

What's happening is this - on shutdown, PHP is destroying the $db object, so MyBB tries to reconstruct it. However, it never successfully connects to the DB, mainly because it can't get the details from inc/config.php

I've modified your inc/config.php (I changed a "require_once" to "require") which should fix this issue up.
Thank you ZiNgA BuRgA, i see problem is solved, i love you Wink
Pages: 1 2