MyBB Community Forums

Full Version: PHP Fatal error: Call to a member function escape_string()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
in my error log filled with this error..

[27-Feb-2012 14:03:09] PHP Fatal error:  Call to a member function escape_string() on a non-object in /home/******/public_html/inc/class_captcha.php on line 181

am using mybb 1.66


how i solve this issue ?
IIRC, this will be fixed in 1.6.7. I remember seeing a ticket for it.

Open ./inc/class_captcha.php

Replace:

	function build_hidden_captcha()
	{
		global $mybb, $templates;

with:


	function build_hidden_captcha()
	{
		global $mybb, $templates, $db;

Save and upload.