【发布时间】:2016-09-12 23:05:28
【问题描述】:
所以 PHP 7.0 出现了一些问题。最值得注意的是 w3 totalcaching 现在导致了一个错误,该错误正在向我的 httpd 错误日志发送垃圾邮件。
Tue May 17 04:11:50.865647 2016] [proxy_fcgi:error] [pid 2554:tid 139695893694208] [client 195.154.181.168:59106] AH01071: Got error 'PHP message: PHP Warning: Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given in /home/x/domains/x/public_html/wp-includes/functions.php on line 3464\n', referer: http://www.googlebot.com/bot.html
修复相当简单https://github.com/gadelkareem/wp-w3-total-cache/commit/e71030e89f4cd666742ae2ec39451782beb42f3a,但我必须为大约 12 个站点执行此操作。并且可能在插件更新时再次出现。
文件总是在这里(* 是变量用户和域相关的文件夹):
/home/*/domains/*/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php
有什么方法可以安全地编写这个脚本吗?
【问题讨论】:
标签: php apache sh centos6 php-7