Archive for March, 2011

PHP Deprecated warnings in WordPress

Apparently, the above error messages were caused by an upgrade to a recent PHP version (5.3.3-7) on the machine where my WordPress blog is hosted.  Initially, I thought about just commenting the lines indicated in the error message, but that didn’t work.  So after a couple of unsuccessful tries and before messing up with my wp-settings and includes files, I decided to do what I’ve should done first, search for a possible solution on the WordPress support site … and YES, I found a few entries about PHP Deprecated warnings!  A very useful page I found is available at: or maybe just Google it.

Basically, I had to add a line at the very beginning of the wp-config.php file


And change a value around line 200 in the wp-settings.php file

//error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);

…and that seems to fix all errors/warnings! :)

I guess this was a good reminder too that it must be time for an upgrade to this blog installation; although since that will most likely require an upgrade for the theme folder, I’d rather wait a bit and get done with other things first.  In short, I’m not upgrading it today, but I’ve added it to my to-do list for the near future.

…feliz tarde de viernes!


No Comments »