Wordpress problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Wordpress problem

Post 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
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: Wordpress problem

Post 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.
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Re: Wordpress problem

Post 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.
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: Wordpress problem

Post 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.
Post Reply