Ultimate Web Tips
your Wordpress, jQuery, PHP, MySQL, Linux and CSS guide to a successful website
Read more:

July 29th, 2011

PHP 5.3 compatibility issues with WordPress

Wordpress, by Joakim Ling.

PHP 5.3 Compatibility issues with WordPressMany are upgrading to PHP 5.3 and experience a lot of difficulties in earlier versions of WordPress. WordPress 3.2+ is fully compatible but there are some important changes in PHP 5.3 that needs to be looked in to in more details.

The biggest issue is that E_DEPRECATED is handled as an error instead of a warning and not ignorable in php.ini.

Deprecated features in versions before 3.2

  • Call-time pass-by-reference is now deprecated.
  • Assigning the return value of new by reference is now deprecated.

First error is triggered in wp-settings, if you can’t upgrade WordPress to latest you can edit that file and look for “set_magic_quotes_runtime(0);” and replace with:

if(version_compare(PHP_VERSION, '5.3.0', '

Suppress E_DEPRECATED

Not recommended but sometimes you don’t have a choice. Edit wp-config.php and add following line at the top

error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);

WordPress 2.8 => 3.0

Does not support PHP5.3 please upgrade.

Wordpress Salesletter Websites Creator

This unique software is a wordpress theme that users can create professional salesletters as well as it has the option to expand their site to add a blog, contact us page, Affiliate pages and hundreds more. Download theme

Back Top

Club World Casinos