Page 1 of 1

Wordpress problem

Posted: Mon May 10, 2010 6:30 am
by aravona
Two of the sites I work on which use wordpress have suddenly thrown up the following notice:
Deprecated: Function set_magic_quotes_runtime() is deprecated in /usr/home/customers/www.site.co.uk/www/wp-settings.php on line 19
I've had a look through the files and at the latest wordpress wp-settings.php file and that line is still there. I'm not sure whats going on with this. I don't even know if both sites are the latest wordpress. All I know is that they, and two other sites, have completely failed today. And that the sub folders are ok, its just the root ones.

site

Any help would be greatly appriciated.

Aravona

Re: Wordpress problem

Posted: Mon May 10, 2010 6:39 am
by cpetercarter
I guess that your web host has upgraded to php 5.3 or later. "set_magic_quotes_runtime()" does not work in php 5.3. Your sites are running old versions of WordPress. They need to be updated, both to deal with this problem and because there are some pretty big security problems with older WordPress versions.

Re: Wordpress problem

Posted: Mon May 10, 2010 6:43 am
by aravona
Well I think one of them was at least version 2.9.0 and I've looked within the 2.9.2 wordpress wp-settings.php file and the same code is there...?

This is why I'm not 100% sure.

Re: Wordpress problem

Posted: Mon May 10, 2010 9:03 am
by cpetercarter
OK. You are right. WordPress 2.6.5 (which I have) does not have set_magic_quotes_runtime() in wp-settings.php. But it is back again in 2.9.2, which is very odd and makes you wonder about Wordpress more generally.

This post suggests a workround until the Wordpress guys wake up and stop including deprecated functions in their code.