WP-LOGIN出现白屏,错误:无法修改标题信息

时间:2013-12-05 作者:Ishan Dhingra

可能重复了许多问题,我之所以在这里发布这些问题都没有帮助,这里是出现在Wp登录上的日志。php页面。

Notice: automatic_feed_links is deprecated since version 3.0! Use add_theme_support( \'automatic-feed-links\' ) instead. in /home/truckgua/public_html/test2/wp-includes/functions.php on line 2871

Notice: wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/truckgua/public_html/test2/wp-includes/functions.php on line 3012

Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-login.php on line 384

Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-login.php on line 396

Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-includes/pluggable.php on line 678

Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-includes/pluggable.php on line 679

Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-includes/pluggable.php on line 680

Warning: Cannot modify header information - headers already sent by (output started at /home/truckgua/public_html/test2/wp-includes/functions.php:2871) in /home/truckgua/public_html/test2/wp-includes/pluggable.php on line 875

I am getting same thing on WP version 3.6 and WP version 3.7.1

现在,我已经做了一些事情来让它发挥作用:

禁用FTP插件切换主题,方法是重命名选定的主题文件夹,检查前后的空间,用新下载的WP文件替换WP文件

One more thing is this website developed on Windows Server and now Moving on Linux Server.

2 个回复
最合适的回答,由SO网友:Charles Clarkson 整理而成

现在,我已经做了一些事情来让它发挥作用:

禁用FTP插件哪个插件?

通过重命名选定的主题文件夹来切换主题,在什么之后和之前检查空间,在什么之后和之前?

用新下载替换WP文件您停止得太快了。PHP告诉您发生了什么问题,而您似乎忽略了它给您的通知和警告。

让我们阅读第一条通知:

Notice: automatic_feed_links is deprecated since version 3.0! Use add_theme_support( \'automatic-feed-links\' ) instead. 
现在,让我们将这一行换行,并添加一些解释性文字,以便于阅读:

问题:Theautomatic_feed_links() 自版本3.0以来,函数已弃用。

解决方案:使用add_theme_support( \'automatic-feed-links\' ); 相反

查看主题和插件文件,以调用automatic_feed_links() 功能// automatic_feed_links(). (看起来可能与此不同。)add_theme_support( \'automatic-feed-links\' );

Notice: wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/truckgua/public_html/test2/wp-includes/functions.php on line 3012
现在,让我们把这句话收起来,并添加一些解释性文字,以便于阅读:

问题:Thewp_deregister_script() 函数是使用错误的挂钩调用的。

解决方案:在wp_enqueue_scripts, admin_enqueue_scripts, 或login_enqueue_scripts 挂钩。

查看主题和插件文件,以调用wp_deregister_script() 功能wp_deregister_script() 函数调用,查找该行所在的用户定义函数的名称add_action() 指向用户定义函数的函数调用add_action( \'wp_enqueue_scripts\', \'the_name of the user defined function\' );.the_name of the user defined function 使用在步骤3中找到的用户定义函数中找到的函数的名称一旦所有通知都消失,在标题之前将不再添加任何内容,其他警告也可能消失。

这些更改可能无法修复页面。其他错误可能会这样做,但在继续进行更多调试之前,应该首先修复通知。

SO网友:Mark Kaplun

看起来您试图使用的主题比较旧,与wordpres 3.4及以上版本的最佳实践不兼容。

需要修复“弃用”通知。一种方法是按照@Charles的建议实际修复它们,另一种方法是通过转到您的配置来隐藏它们。php文件并删除或注释WP\\u DEBUG设置为TRUE的行。

结束

相关推荐

如何在子目录WordPress安装中包含外部PHP文件?

我最初在SO上发布了这篇文章,但被指示这样做。我在目录/博客中安装了Wordpress。我正在尝试使用相对路径(如“../../include/file.PHP”)包含位于根父目录中的多个PHP文件。由于Wordpress使用其安装目录作为基础,我试图通过包括<base href=\"http://mydomain.com\" /> 在头部内部,但没有效果。在我的Wordpress主题中,我可以适当地调用这些PHP文件吗?