解决Wordpress安装时出现Warning: Cannot modify header information

777 views

刚在xampp下调试安装WordPress,到了打开http://localhost/wordpress/wp-admin/install.php进行WordPress安装时,顶部老时提示:“Warning: Cannot modify header information – headers already sent by (output started at C:\xampp\htdocs\w\wp-config.php:1)”,上网股沟之,答案也是有五花八门,看了好几种,都觉得说的不是我这种问题。

继续找,一篇文章写到:“现在你可以打开这个文件,一般来说就是wp-config.php,当你打开这个文件,直接点另存为就可以了,然后你看看编码那里,选择为ANSI之后点保存试试,当你把修改好的文件重新上传之后,刷新一下,是不是错误提示就没有了!

如果还有错误提示,照上面的步骤进行,把错误提示提及到的文件都修改一遍吧,如果还有什么问题,留言吧,或许我会有兴趣跟你一起研究问题出在哪里。

赶紧去打开wp-config.php,看到另存为的编码是utf-8,我重新另存为ANSI格式。再打开http://localhost/wordpress/wp-admin/install.php,warning提示没有啦,ok!

Category 经验记录 Tagged , , , , Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted 2010年07月30日 at 23:31 | Permalink

    再一次测试评论功能

    [回复]

One Trackback

  1. [...] 解决Wordpress安装时出现Warning: Cannot modify header information (0)2009年03月14日 [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>