{"id":7316783,"date":"2016-04-25T15:40:18","date_gmt":"2016-04-25T15:40:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/w3tc-bug-php-7-compatibility\/"},"modified":"2016-08-31T16:53:39","modified_gmt":"2016-08-31T16:53:39","slug":"w3tc-bug-php-7-compatibility","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/w3tc-bug-php-7-compatibility\/","title":{"rendered":"W3TC Bug &amp; PHP 7 compatibility"},"content":{"rendered":"<p>Frederick,<\/p>\n<p>Thanks for W3TC!<\/p>\n<p>With PHP 7 I&#8217;m seeing many errors like the one below:<br \/>\n[error] [client X.X.X.X] FastCGI: server &#8220;\/home\/www\/fastcgi.fcgi&#8221; stderr: PHP message: PHP Warning:  Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given in \/home\/www\/site\/wp-includes\/functions.php on line 3553<\/p>\n<p>Is there a reason to not make the below change to line 512 of lib\/W3\/Plugin\/TotalCache.php?<br \/>\n &#8211;    function ob_callback(&amp;$buffer) {<br \/>\n +    function ob_callback($buffer) {<\/p>\n<p>It&#8217;s been suggested elsewhere, and seems to work wonderfully on 5.6 &amp; 7.0x<\/p>\n<p>Thanks!<\/p>\n<p>https:\/\/wordpress.org\/plugins\/w3-total-cache\/<\/p>\n","protected":false},"template":"","class_list":["post-7316783","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7316783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7316783\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7316783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}