Title: [Plugin: W3 Total Cache] w3 total cache &#8211; deprecated php errors
Last modified: August 20, 2016

---

# [Plugin: W3 Total Cache] w3 total cache – deprecated php errors

 *  [piginthepoke](https://wordpress.org/support/users/piginthepoke/)
 * (@piginthepoke)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-deprecated-php-errors/)
 * 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/](http://wordpress.org/extend/plugins/w3-total-cache/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [pvutrix](https://wordpress.org/support/users/pvutrix/)
 * (@pvutrix)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-deprecated-php-errors/#post-2534999)
 * I’m also disabling it, until an update
 *  [Andreas](https://wordpress.org/support/users/andreasnrb/)
 * (@andreasnrb)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-deprecated-php-errors/#post-2535095)
 * Well deprecated is not a big deal. Plugin still functions. Could lower your error
   notification and add & ~E_DEPRECATED to error_reporting .
 *  Thread Starter [piginthepoke](https://wordpress.org/support/users/piginthepoke/)
 * (@piginthepoke)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-deprecated-php-errors/#post-2535110)
 * 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?
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-deprecated-php-errors/#post-2535111)
 * These errors will be addressed in the next release. So i would ignore those notices
   for now.
 *  Thread Starter [piginthepoke](https://wordpress.org/support/users/piginthepoke/)
 * (@piginthepoke)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-deprecated-php-errors/#post-2535183)
 * still hope to see a new release so I can use your wonderful plugin again. Power
   to your elbow Mr T
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-deprecated-php-errors/#post-2535189)
 * Thanks for the support. It’s really hard to make people happy.
 *  [pvutrix](https://wordpress.org/support/users/pvutrix/)
 * (@pvutrix)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-deprecated-php-errors/#post-2535206)
 * This is still not addressed?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: W3 Total Cache] w3 total cache – deprecated php errors’ is closed
to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)

 * 7 replies
 * 4 participants
 * Last reply from: [pvutrix](https://wordpress.org/support/users/pvutrix/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-deprecated-php-errors/#post-2535206)
 * Status: not resolved