# W3 Total Cache compatibility issue after updating PHP in WordPress

233 views

I got following error message on every page including sitemap_index.xml

Warning: Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given in /public_html/wp-includes/functions.php on line 3464

I use Ubuntu OS with PHP 7 with WordPress CMS.

by (9.6k points)
edited

Yea, many web hosting service providers updating the version of old PHP to PHP 7. However, not all themes and plugins are still compatible with the new change. That's why you may face this type of errors. The solution is dealt with W3 Total Cache plugin.

2. search for ob_callback(&$buffer) 3. Clue: It may on line No. 512 4. Remove & sign, so it becomes ob_callback($buffer)