已迁移的WordPress站点出现“Unfined Variable:php”警告

时间:2012-06-13 作者:Siddharth

我刚刚将wordpress网站从笔记本电脑迁移到桌面。我在尝试/localhost/wordpress/wp admin时遇到服务器错误500。所以我打开了WP\\U调试,现在我得到了一系列

Notice: Undefined variable: skype_mu_dir in /var/www/wordpress/wp-content/plugins/skype-online-status/skype-status.php on line 42 
Notice: Undefined variable: skype_mu_dir in /var/www/wordpress/wp-content/plugins/skype-online-status/skype-status.php on line 43 
Notice: Undefined variable: user in /var/www/wordpress/wp-content/plugins/wp-symposium/symposium_hooks_filters.php on line 553 
Notice: Undefined variable: user in /var/www/wordpress/wp-content/plugins/wp-symposium/symposium_hooks_filters.php on line 555 
Notice: Undefined variable: uid in /var/www/wordpress/wp-content/plugins/wp-symposium/symposium_hooks_filters.php on line 600 
Notice: Undefined variable: uid in /var/www/wordpress/wp-content/plugins/wp-symposium/symposium_hooks_filters.php on line 602 
Notice: Undefined variable: cache_needs_updating in /var/www/wordpress/wp-content/plugins/s2member/includes/classes/cache.inc.php on line 97 
Notice: Undefined index: level-1_label in /var/www/wordpress/wp-content/plugins/s2member/includes/classes/constants.inc.php on line 287 
Notice: Undefined index: contact_me_data in /var/www/wordpress/wp-content/plugins/contactme/contactmedotcom.php on line 34 
Fatal error: Class \'Memcache\' not found in /var/www/wordpress/wp-content/plugins/flexicache/FlexiCache/Store/Memcache.php on line 63
A ls-l on/var/www显示

drwxr-xr-x  7 www-data www-data 4096 2012-06-13 21:35 wordpress
A ls-l on/var/www/wordpress显示

drwxr-xr-x 11 www-data www-data  4096 2012-06-13 19:24 wp-admin
A ps-ef | grep apache2报告

prompt:/var/www/wordpress$ sudo ps -ef | grep apache2
root     14040     1  0 19:23 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 14043 14040  0 19:23 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 14044 14040  0 19:23 ?        00:00:01 /usr/sbin/apache2 -k start
www-data 14045 14040  0 19:23 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 14046 14040  0 19:23 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 14047 14040  0 19:23 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 14048 14040  0 19:24 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 14056 14040  0 19:24 ?        00:00:00 /usr/sbin/apache2 -k start
我想知道我错过了什么。我相信这是一件非常小的事情。

1 个回复
最合适的回答,由SO网友:EAMann 整理而成

通知不会触发服务器500错误。然而,“致命错误”将。从上面的日志中:

Fatal error: Class \'Memcache\' not found in /var/www/wordpress/wp-content/plugins/flexicache/FlexiCache/Store/Memcache.php on line 63
这意味着您运行的插件依赖于Memcache,而您的本地系统不支持Memcache。禁用或删除FlexiCache插件,或安装Memcache。

另一件需要记住的重要事情是,仅仅在服务器上安装Memcache通常是不够的。PHP必须在编译时支持它,否则您需要manually load the PHP\'s Memcache extension. 默认情况下,它没有与PHP捆绑在一起,尽管有些主机可能会为您安装它。

结束