简体   繁体   English

WordPress-警告:无法修改标题信息

[英]WordPress - Warning: Cannot modify header information

I have copied a functional WordPress website from a server to another. 我已将功能正常的WordPress网站从服务器复制到另一个服务器。 I didn't do any changes to the files, I've only copied and installed it to another server. 我没有对文件做任何更改,仅将其复制并安装到了另一台服务器上。

Here is the error I get: 这是我得到的错误:

Warning: Cannot modify header information - headers already sent by (output started at /home/truhealthmedical/public_html/articles/wp-config.php:1) in /home/truhealthmedical/public_html/articles/wp-includes/functions.php on line 3588 警告:无法修改标头信息-已发送的标头(输出始于/home/truhealthmedical/public_html/articles/wp-config.php:1)在/home/truhealthmedical/public_html/articles/wp-includes/functions.php中3588行

Also I got a similar error, but to this one, when I try to access /wp-admin: 当我尝试访问/ wp-admin时,我也遇到了类似的错误:

/home/truhealthmedical/public_html/articles/wp-includes/functions.php /home/truhealthmedical/public_html/articles/wp-includes/functions.php

I checked and there are no spaces or "?>" tags to wp-config.php. 我检查了并在wp-config.php中没有空格或“?>”标签。 My perplexity is that I don't understand why it's working on a server, and on the other one it's not. 我的困惑是我不明白为什么它在服务器上运行,而在另一台服务器上却没有。

I have read a lot of articles, and tried a lot of possibilities, but still not working. 我读了很多文章,并尝试了很多可能性,但仍然无法正常工作。

Thanks in advance! 提前致谢!

I have often got these type of warning and this worked for me: You can put ob_start(); 我经常收到这类警告,并且对我有用:您可以输入ob_start();。 function in the top of your wp-config.php file. wp-config.php文件顶部的函数。 This might work for you too. 这也可能对您有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM