wp-login.php on line 302出现错误

@makiller  January 3, 2012

昨天我的博客因为升级3.3而出现问题,需要重装WP,在弄好数据库正准备进入后台的时候,帐户登陆框那提示说(原来的错误代码我没记下,这个我是从网上转过来的,但是错误的确是这个)

Warning: Cannot modify header information – headers already sent by (output started at/…/wp-config.php:1) in/…/wp-login.php on line 302

Warning: Cannot modify header information – headers already sent by (output started at/…/wp-config.php:1) in/…/wp-login.php on line 314

直接输入帐户和密码进入控制面板(现在3.3的说法是仪盘表,真不习惯),也不能进去,提示下列错误

Warning: Cannot modify header information – headers already sent by (output started at/…/wp-config.php:1) in/…/wp-login.php on line 302

Warning: Cannot modify header information – headers already sent by (output started at/…/wp-config.php:1) in/…/wp-login.php on line 314

后来在群里问朋友的时候,朋友就问到你那个wp-config.php文件有没有错误,你再上传个新的上去。我随后重新弄了一份上去,竟然错误解决了,后来在百度出来的一篇文章中我才知道原因,造成上述原因的是wp-config.php文件的编码问题。我的wp-config.php是在FTP修改的,可能保存为UTF-8格式了,但是正确的保存格式为ANSI格式。

解决方法只要把wp-config.php文件下载下来,再另存为编码是ANSI格式,最后再替换原来的文件就行了。 

 

 


添加新评论

  1. 沙发哦?

    Reply
    1. @朱定聪

      对于这种文章来说,来顶的人很少啊·

      Reply
  2. 很久没有来了 我没有遇到过这种情况的说。。

    Reply
  3. 嗯,经验呀,宝贵呢

    Reply
  4. 很好

    Reply
  5. Har

    oxycodone 15mg ir pain pills for sale online . buy percocet online oxycodone pills for sale oxycodone uses where to buy vicodin online ordering pills online buy pain medication . oxycodone 30 mg immediate release 60 mg oxycodone roxy 30 milligram buy Oxycodone online no rx. how can i get a prescription for oxycodone oxycodone 30 mg m oxycodone hydrochloride 5 mg who makes oxycodone .

    Reply