MyBB Community Forums

Full Version: Site errors after transfer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, I have just moved web hosts, and iv moved over the files and databases with no problems, however now the name servers have updated and I can view my site, some random errors have started showing up.

My website is www.cgamer.co.uk

Quote:Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/cgamer/public_html/forums/inc/class_core.php on line 165


Can anyone else see these problems and know what may be causing it?
Your host should disable magic quotes, it will cause errors on PHP 5.3+ which is what they're running. As a temp fix, in ./inc/class_core.php, from line 158:

if(get_magic_quotes_gpc())
{
	$this->magicquotes = 1;
	$this->strip_slashes_array($_POST);
	$this->strip_slashes_array($_GET);
	$this->strip_slashes_array($_COOKIE);
}
set_magic_quotes_runtime(0);

change to:

if(@get_magic_quotes_gpc())
{
	$this->magicquotes = 1;
	$this->strip_slashes_array($_POST);
	$this->strip_slashes_array($_GET);
	$this->strip_slashes_array($_COOKIE);
}
@set_magic_quotes_runtime(0);
Most probably a host issue

EDIT : posted at the same time as matt Big Grin, follow his guideline Smile
Hey, that was some very quick replies!

I shall talk to my host about it now to see what can be done. Thanks for the temp fix too, I shall try that out if nothing can be done about it.