MyBB Community Forums

Full Version: Warning SQL Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

One of our staff tried to warn a user a few days ago, and he got this internal error:

Quote:MyBB has experienced an internal error and cannot continue.

Error Type:
Catchable Fatal Error (4096)
Error Message:
Object of class mysqli_result could not be converted to string
Location:
File: warnings.php(670) : eval()'d code
Line: 10
Backtrace:
File Line Function
/inc/class_error.php 171 errorHandler->output_error
/warnings.php(670) : eval()'d code 10 errorHandler->error
/warnings.php 670 eval

Please contact the MyBB Group for support.

Any ideas how to fix it?

Btw the forum is www.gamingzion.net .

Thanks
Aryan~
Did you try to reupload a new warning.php file or class_error.php?
No. Could it be because of one of the plugins we're using? We have over 40 installed plugins atm.
Do you have any plugins which involve the warning system?
Ya, List the plugins, so we can take a look, please.
I wouldn't have thought it was a plugin as the line it mentions is just loading a template.

eval("\$types .= \"".$templates->get("warnings_warn_type")."\";");

Is this template default?? Can't think why it'd be causing this error though...