简体   繁体   English

Wordpress / PHP警告,创建默认对象,无法访问管理面板致命错误

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

This is all new for me. 这对我来说是全新的。 My wordpress website is throwing this error... 我的wordpress网站抛出此错误...

[25-Jun-2015 11:28:24 UTC] PHP Warning: Creating default object from empty value in /.../public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php on line 229 [2015年6月25日11:28:24 UTC] PHP警告:从229行的/.../public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php中的空值创建默认对象

And unwanted ads started showing up everywhere. 到处都有不需要的广告。 So I tried to log into my admin panel to see if it was a plugin problem and it throws this error... 所以我尝试登录到管理面板以查看是否是插件问题,并引发此错误...

[25-Jun-2015 13:53:42 UTC] PHP Warning: Creating default object from empty value in /.../public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php on line 229 [2015年6月25日13:53:42 UTC] PHP警告:从229行的/.../public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php中的空值创建默认对象

[25-Jun-2015 13:53:42 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /.../public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/functions.php:229) in /.../public_html/chrismarsh.us/wp-includes/pluggable.php on line 1178 [2015年6月25日13:53:42 UTC] PHP警告:无法修改标头信息-已发送的标头(输出始于/.../public_html/chrismarsh.us/wp-content/themes/StandardTheme_272/admin/ 1178行上的/.../public_html/chrismarsh.us/wp-includes/pluggable.php中的functions.php:229)

Can anyone help me out? 谁能帮我吗? The website is chrismarsh.us 网站是chrismarsh.us

Double-check your wp-config.php and your /wp-content/themes/StandardTheme_272/functions.php to make sure there is no whitespace before the <?php part of the file. 仔细检查您的wp-config.php和/wp-content/themes/StandardTheme_272/functions.php,以确保文件的<?php部分之前没有空格。 I don't know why that happens but it does happen sometimes and it will throw "PHP Warning: Cannot modify header information - headers already sent by..." as a result. 我不知道为什么会发生这种情况,但是有时确实会发生这种情况,结果将抛出“ PHP警告:无法修改标头信息-标头已经由...发送”。

Not saying this is the only possible reason but it is one possible reason based on what I've encountered working with WordPress. 并不是说这是唯一可能的原因,但这是根据我使用WordPress遇到的可能的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WordPress:致命错误,无法在控制面板/管理面板上进行访问 - Wordpress: fatal error no access on control panel/admin panel 为什么我不能在 Wordpress 中创建新帖子? 警告:从第 716 行的 /public_html/wp-admin/includes/post.php 中的空值创建默认值 object - Why can't I create new posts in Wordpress? Warning: Creating default object from empty value in /public_html/wp-admin/includes/post.php on line 716 无法访问WordPress管理面板 - Can not access wordpress admin panel WordPress主题管理面板显示本地服务器中的致命错误 - Wordpress Theme admin panel showing fatal error in local server WordPress管理面板错误? - Wordpress admin panel error? 无法在PHP中访问全局变量-“致命错误:在非对象上调用成员函数query()” - Can't access a global variable in PHP-“Fatal error: Call to a member function query() on a non-object” 无法访问Laravel管理面板 - Can't access Laravel admin panel Magento帮助-由于出现警告,无法访问站点或管理面板:打开消息失败和致命错误消息 - Magento help - cant access site or admin panel due to warning: failed opening messages and fatal errer message Wordpress主页上的警告和致命错误 - Warning and Fatal Error on Wordpress Homepage 创建Com对象时发生PHP致命错误 - PHP fatal error on creating Com Object
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM