PHP升级正在给我的Wordpress博客错误

时间:2013-01-08 14:25:36

标签: php wordpress

我刚刚进行了Apache升级,也许我也更新了PHP(但不是100%肯定),我的网站:http://www.villagedrinks.co.uk/现在正在收到这些错误,我甚至不会在我的网站上使用WP,任何帮助非常感谢。我的一般编码能力有限。谢谢格雷格 以下是错误/警告:

Deprecated: Assigning the return value of new by reference is deprecated in /home/village/public_html/blog/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /home/village/public_html/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/village/public_html/blog/wp-includes/theme.php on line 507

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/village/public_html/blog/wp-includes/cache.php:36) in /home/village/public_html/includes/inc_functions.php on line 22

2 个答案:

答案 0 :(得分:1)

按照生产服务器的建议,将php.ini中的error_reporting PHP变量更改为E_ALL & ~E_DEPRECATED。然后重启您的网络服务器。这将取消弃用通知并修复您的session_start()问题。

答案 1 :(得分:1)

你肯定在使用Wordpress:http://www.villagedrinks.co.uk/blog/

您收到警告,因为您的Wordpress安装很古老:

<meta name="generator" content="WordPress 2.2.1" />

升级Wordpress(当前版本为3.5)或者只是完全删除/blog/文件夹。

安装旧版本是不安全的,并且允许某人通过其中一个numerous unpatched bugs进入您的网站。

相关问题