Fix – Deprecated: Assigning the return value of new by reference is deprecated in PHP5.3

i recently updated to latest PHP 5 from PHP 4 and my wordpress blog was littered with these errors. I have seen these warnings before with PHP 5. Dont worry! The fix is very easy.

Deprecated: Assigning the return value of new by reference is deprecated in /home/topbest/public_html/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/topbe/public_html/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/topbe/public_html/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/topbe/public_html/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /home/topbe/public_html/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/topbe/public_html/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/topbe/public_html/wp-includes/theme.php on line 623

 

The fix is very easy. The only way you can fix this is update your wordpress to latest version or if you can manually edit the above files on lines,  remove “&”  fix this.

For Example:

$wp_locale = & new WP_Locale();

Remove the & and these warnings will be fixed.

 

Similar Posts:

Prabhu Balakrishnan

I am cool and friendly internet entreprenur blogging since 2005. My interests are wordpress, PHP, linux servers, SEO and travel. Besides computers, i am crazy for video games, travel and a cup of hot coffee! I am born in Coimbatore, India but i currently live in Budapest, Hungary. Feel free to contact me folks!

Leave a Reply

Your email address will not be published. Required fields are marked *


1 × = five

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please wrap all source codes with [code][/code] tags. Powered by
  1. Del

    Hi would you mind sharing which blog platform you’re working with? I’m going to start my own blog soon but I’m having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something completely unique. P.S My apologies for being off-topic but I had to ask!

    Reply
  2. Brady

    It’s actually very complicated in this full of activity life to listen news on TV, therefore I only use world wide web for that purpose, and get the most up-to-date information.

    Reply
  3. journalhome.com

    hey there and thank you for your info – I’ve certainly picked up anything new from right here.
    I did however expertise a few technical points using this web site, since I experienced to reload the
    site lots of times previous to I could get it to load correctly.

    I had been wondering if your web host is OK? Not that I’m complaining, but slow loading instances times will sometimes affect your placement in
    google and can damage your high-quality score if advertising and marketing
    with Adwords. Well I’m adding this RSS to my email and can
    look out for a lot more of your respective interesting content.
    Make sure you update this again very soon.

    Have a look at my page – it solutions Companies (journalhome.com)

    Reply
  4. La Vie d'Adele telecharger

    Amazing issues here. I am very happy to see your post. Thanks a lot and I am taking a look forward to touch you.
    Will you kindly drop me a mail?

    Take a look at my web blog La Vie d’Adele telecharger

    Reply