2

任何人都可以提供任何关于为什么wp-admin/options-general.php在 PHP 5.3 中我的 Wordpress 安装无法加载的建议吗?如果我启用调试然后有 PHP 报告错误,我确实会收到弃用错误,但它们似乎不相关。此外,如果我修复了这些错误,页面仍然无法加载。

顶部栏和几个导航框加载,但中央框架内没有?

我正在运行 dotdeb 的 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
4

3 回答 3

2

如果我没记错的话,wordpress 使用了很多@ 运算符来避免显示错误......所以,其中很多都没有显示,如果error_reporting激活了事件 :-(
(这就是 @ 运算符邪恶的原因之一...... )

也许在您的测试机器上使用尖叫扩展来禁用 @ 运算符,会有所帮助吗?

不过,我刚刚在 PHP 5.3 上尝试过 wordpress,并且该页面似乎加载良好......我使用的是 2.8.x 版本,顺便说一句

于 2009-08-07T04:36:28.233 回答
1

尝试禁用您已安装的所有插件。如果它解决了问题,则尝试启用每个插件一个我的一个,以找出有问题的插件。

您还可以使用 wp-devel 插件来查找函数跟踪。http://wordpress.org/extend/plugins/wp-devel/

于 2009-08-10T09:31:06.503 回答
0

也许是 Wordpress 调试(Pear 等)插件?有助于?(我自己没用过。)

于 2009-08-07T14:25:29.750 回答