Home  >  Article  >  php教程  >  Wordpress出现警告不能修改头信息头已经发出在解决方法

Wordpress出现警告不能修改头信息头已经发出在解决方法

PHP中文网
PHP中文网Original
2016-05-25 17:07:151394browse

今天有人问,自己的wordpress网站一直出现一大串奇怪的错误,不知道怎么办,先上问题:


Warning: Cannot modify header information - headers already sent by (output started at /home/cf9999/domains/cf9999.cn/public_html/blog/wp-config.php:1) in /home/cf9999/domains/cf9999.cn/public_html/blog/wp-admin/install.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/cf9999/domains/cf9999.cn/public_html/blog/wp-config.php:1) in /home/cf9999/domains/cf9999.cn/public_html/blog/wp-admin/install.php on line 36

警告:不能修改头信息 - 头已经发出在/ home/cf9999/domains/cf9999.cn(输出/ home/cf9999/domains/cf9999.cn/public_html/blog/wp-config.php:1开始)/的public_html /install.php了上线36



这样的问题确实很怪,不过使用过wordpress的站友们应该知道是什么原因,其实就是很简单的错误,不过,如果不知道,怎么弄也是白费。

在搭建自己的wordpress网站的时候,都要修改一下自己的配置文件吧,在本地都要先修改一下的,不过这个修改是有讲究的,php文件一般不要用记事本打开修改,如果修改后,就可能出现奇怪的问题,比如说是今天这个问题。

 不卖关子了,还是上解决方案吧!嘿嘿,请看下面↓

用 EPP 打开你的 wp-config.php ,看下最开始处有没有UTF8的标识代码或其他字符,删除之即可。

 往往很复杂难缠的东西,都是由很不起眼的一些小问题诞生的,程序猿们一定要细心细心再细心哦!


                   


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn