WordPress.org

Forums

W3 Total Cache
w3 total cache - deprecated php errors (8 posts)

  1. piginthepoke
    Member
    Posted 3 years ago #

    on my site I got a bunch of errors regarding deprecated after the host's
    server had an upgrqade this week to phph 5.3.9

    W3 Total Cache was the only plugin falling over. I edited some of the files (identified as Minify.php and tempcache.php in plugins/w3-total-cache/lib/W3/Plugin/ ) to elimate the errors by removing the & in lines with =& new (which has been deprecated in php 5) to read = new this removed a chunk of the error lines but the rest of the deprication errors couldn't be resolved that way.

    I have had to deactivate the plugin for now. I will reactivate at the next update. Still a great plugin!

    The remaining lines are:

    Deprecated: Assigning the return value of new by reference is deprecated in /home/lodgeofh/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 1929
    
    Deprecated: Assigning the return value of new by reference is deprecated in /home/lodgeofh/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 1966
    
    Deprecated: Assigning the return value of new by reference is deprecated in /home/lodgeofh/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 2983
    
    Deprecated: Assigning the return value of new by reference is deprecated in /home/lodgeofh/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php on line 5244
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/lodgeofh/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCacheAdmin.php:1878) in /home/lodgeofh/public_html/wp-content/plugins/w3-total-cache/lib/W3/Referrer.php on line 47

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. pvutrix
    Member
    Posted 3 years ago #

    I'm also disabling it, until an update

  3. andreasnrb
    Member
    Posted 3 years ago #

    Well deprecated is not a big deal. Plugin still functions. Could lower your error notification and add & ~E_DEPRECATED to error_reporting .

  4. piginthepoke
    Member
    Posted 3 years ago #

    As I don't have access to my php.ini file I added
    ini_set('display_errors',0);
    to my wp-config.php file right after the first <?php

    <?php
    
    ini_set('display_errors',0);

    That stop the errors showing on the public sideAND on my WP dashboard There are however deprecation errors on the the incoming links panel.

    That, said... when I clear the W3TC's cache it spews out more deprecation errors and breaks the page - indicated deprecation errors are in W3's PgCacheFlush.php & Cache.php files.

    Can I exclude the E_Deprecation on in i_set('display_errors',0); instead of the 0 or do I need the error_reporting line as well?

  5. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    These errors will be addressed in the next release. So i would ignore those notices for now.

  6. piginthepoke
    Member
    Posted 3 years ago #

    still hope to see a new release so I can use your wonderful plugin again. Power to your elbow Mr T

  7. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the support. It's really hard to make people happy.

  8. pvutrix
    Member
    Posted 2 years ago #

    This is still not addressed?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic