Wordpress/PHP警告,创建默认对象,Can';t访问管理面板致命错误


Wordpress/PHP Warning, Creating default object, Can't access Admin Panel Fatal Error

这对我来说是全新的。我的wordpress网站正在抛出这个错误。。。

〔25-Jun-2015 11:28:24 UTC〕PHP警告:正在从/中的空值创建默认对象/第229行上的public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php

不需要的广告开始到处出现。所以我试着登录我的管理面板,看看是否是插件问题,它会抛出这个错误。。。

〔25-Jun-2015 13:53:42 UTC〕PHP警告:正在从/中的空值创建默认对象/第229行上的public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php

[25-2015年6月25日13:53:42 UTC]PHP警告:无法修改标头信息-标头已由/…中的(输出起始于/…/public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.PHP:229)发送/第1178行上的public_html/chrismarsh.us/wp-includes/pluggable.php

有人能帮我吗?网站是chrismarsh.us

仔细检查您的wp-config.php和/wp-content/themes/StandardTheme_272/functions.php,以确保文件的<?php部分之前没有空白。我不知道为什么会发生这种情况,但有时确实会发生,结果会抛出"PHP警告:无法修改标头信息-标头已由…发送"。

并不是说这是唯一可能的原因,但这是基于我在使用WordPress时遇到的一个可能的原因。