Cookie由于Wordpress中的意外输出而被阻止 [英] Cookies are blocked due to unexpected output in Wordpress
问题描述
几天后,我在尝试登录时遇到此错误
Couple of days back, i got this error when i was trying to login
我发现了一些解决方案,例如:
i did find out some solutions such as:
- 重命名插件文件夹
- 替换产生错误的文件。
但这些都不工作,在这种情况下,仍然存在问题,所以任何帮助在这里将不胜感激。
But these are not working in this case, still problem exists, so any help here would be appreciated.
错误:
ERROR: Cookies are blocked due to unexpected output.
这是服务器错误日志:
[10-May-2014 14:02:28 UTC] PHP Notice: Use of undefined constant WP_TEMPLATE_URL - assumed 'WP_TEMPLATE_URL' in /home/paragint/public_html/wp-content/themes/RockStarLeadTheme-v2-4/functions/mobile/index.php on line 115
[10-May-2014 14:02:28 UTC] PHP Notice: Use of undefined constant WP_TEMPLATE_URL - assumed 'WP_TEMPLATE_URL' in /home/paragint/public_html/wp-content/themes/RockStarLeadTheme-v2-4/functions/mobile/index.php on line 118
[10-May-2014 14:02:28 UTC] PHP Notice: Use of undefined constant WP_TEMPLATE_URL - assumed 'WP_TEMPLATE_URL' in /home/paragint/public_html/wp-content/themes/RockStarLeadTheme-v2-4/functions/mobile/index.php on line 119
[10-May-2014 14:02:28 UTC] PHP Notice: Undefined index: __getthere in /home/paragint/public_html/wp-content/themes/RockStarLeadTheme-v2-4/functions/mobile/index.php on line 189
[10-May-2014 14:02:28 UTC] PHP Notice: Undefined index: __getthere in /home/paragint/public_html/wp-content/themes/RockStarLeadTheme-v2-4/functions/mobile/index.php on line 202
[10-May-2014 14:02:28 UTC] PHP Notice: Undefined index: __getthere in /home/paragint/public_html/wp-content/themes/RockStarLeadTheme-v2-4/functions/mobile/index.php on line 213
[10-May-2014 14:02:28 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/paragint/public_html/wp-content/themes/RockStarLeadTheme-v2-4/functions/mobile/index.php:115) in /home/paragint/public_html/wp-login.php on line 414
[10-May-2014 14:02:28 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/paragint/public_html/wp-content/themes/RockStarLeadTheme-v2-4/functions/mobile/index.php:115) in /home/paragint/public_html/wp-login.php on line 426
更新:
此问题基本上是由于文件编码UTF-8 BOM而不是通常的UTF-8在WordPress 3.9,但任何想法如何摆脱这一点?因为保存文件不是为我工作。
Update: This issue basically occurred due to file encoding UTF-8 BOM instead of the usual UTF-8 in WordPress 3.9 but any idea how to get rid of that? because saving the file is not working out for me.
推荐答案
我尝试以下解决方案解决类似问题
I tried following solutions by which similar issues get resolved
- 更改文件格式(UTF-8 BOM为UTF-8)
- 重命名插件文件夹
- 替换发生错误的文件(在启用wp-debug时)
但在我的案例中,最终解决方案是升级WordPress,或者更有可能你可以说使用FTP替换核心WordPress文件。
我按照本指南进行手动升级:
http://codex.wordpress.org/Updating_WordPress
But in my case final solution was to upgrade the WordPress, or more likely you can say replacing core WordPress files using FTP. I followed this guide for manual upgrade: http://codex.wordpress.org/Updating_WordPress
这篇关于Cookie由于Wordpress中的意外输出而被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!