每当我的 WordPress 网站获得大量流量时,我都会收到大量以下错误:
[Tue Oct 29 22:23:23 2013] [error] [client XXX.XXX.XXX.XXX] FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message: PHP Fatal error: Cannot redeclare class wp_facebookapiexception in /wp-content/plugins/all-in-one-event-calendar/lib/facebook-php-sdk/base_facebook.php on line 25, referer: http://example.com/the-article/
PHP 停止工作,我必须重新启动 memcached 和 PHP-fpm,一旦流量降至正常,我就不会再收到这些错误
我的服务器配置是
Linux Ubuntu 12.04.3 LTS
PHP 5.4.21-1+debphp.org
memcache 3.0.8
APC config:
extension=apc.so
apc.filters = wp-cache-configi,wp-cache-base,lessc.inc
apc.include_once_override = 0
apc.shm_size=96M
apc.mmap_file_mask=/tmp/apc.XXXXXX
任何想法可能会发生什么?