问题描述
对于在PHP 5.3中我的Wordpress安装为何无法加载 wp-admin / options-general.php
的人,谁能提供任何建议?如果启用调试后出现PHP报告错误,则我会收到不赞成使用的错误,但它们似乎无关紧要。此外,如果我纠正了这些错误,则该页面仍然无法加载。
Can anyone offer any suggestions as to why wp-admin/options-general.php
won't load on my Wordpress installation in PHP 5.3? If I enable debugging and then have PHP report errors, I do get deprecation errors, but they don't seem relevant. Further, if I fix these errors, the page still does not load.
顶部栏和几个导航框都已加载,但中心框架内没有内容?
The top bar and several navigation boxes load, but nothing inside the central frame?
我正在运行dotdeb的PHP 5.3
I am running dotdeb's PHP 5.3
输出为 WP_DEBUG
和 error_reporting(0)
:
Deprecated: Assigning the return value of new by reference is deprecated in /home/willyum/willyum.info/blog/wp-includes/cache.php on line 103
Deprecated: Assigning the return value of new by reference is deprecated in /home/willyum/willyum.info/blog/wp-includes/pomo/mo.php on line 171
Deprecated: Assigning the return value of new by reference is deprecated in /home/willyum/willyum.info/blog/wp-includes/l10n.php on line 407
Deprecated: Assigning the return value of new by reference is deprecated in /home/willyum/willyum.info/blog/wp-includes/query.php on line 61
Deprecated: Assigning the return value of new by reference is deprecated in /home/willyum/willyum.info/blog/wp-includes/theme.php on line 1133
Deprecated: Assigning the return value of new by reference is deprecated in /home/willyum/willyum.info/blog/wp-includes/taxonomy.php on line 617
推荐答案
如果我没记错的话,wordpress会使用很多避免显示错误...因此,如果激活 error_reporting
,则不会显示很多错误:-(
(这就是@运算符是邪恶的原因之一...)
If I remember correctly, wordpress uses lots of @ operator to avoid the display of errors... So, many of those are not displayed, event if error_reporting
is activated :-(
(That's one of the reasons that @ operator is evil... )
也许使用,要禁用@运算符,可能会有所帮助?
Maybe using the scream extension on your testing machine, to disabled the @ operator, could help ?
还是,我刚刚在PHP 5.3上尝试过wordpress,并且该页面似乎加载正常...我使用的是2.8.x版本,btw
这篇关于Wordpress和PHP 5.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!