几天回来,我在尝试登录时遇到了这个错误
我确实找到了一些解决方案,例如:
重命名插件文件夹
替换出错的文件.
但是这些在这种情况下不起作用,仍然存在问题,所以任何帮助都会受到赞赏.
错误:
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而不是WordPress 3.9中通常的UTF-8,但任何想法如何摆脱它?因为保存文件不适合我.