MyBB Community Forums

Full Version: Can't upgrade to 1.2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:Fatal error: Call to undefined function: escape_string() in /home/convowo/public_html/mybb12/install/upgrade.php on line 379
I get this error after clicking the first NEXT button on the UPGRADE.PHP file in the /INSTALL/ directory. Any idea why??
Well I get that language error when I messed up upgrading 1.2, so I emptied my database and re-uploaded a old backup, but with the old backup on it, I still get a language error in teh admin cp.
Just tried to re-upgrade but keep getting this error on install/upgrade.php:
Quote:Fatal error: Call to undefined function: escape_string() in /home/convowo/public_html/mybb12/install/upgrade.php on line 379

That section is here:
function add_upgrade_store($title, $contents)
{
	global $db;
	$db->query("REPLACE INTO ".TABLE_PREFIX."upgrade_data (title,contents) VALUES ('".$db->escape_string($title)."', '".$db->escape_string(serialize($contents))."')");
}
Anyone got any ideas why?
Are you sure you have the latest inc/db_mysql.php? It has drasticly changed.
Ahh, i've sorted it... Smile