首页 > 解决方案 > "Header already sent" error in Wordpress site

问题描述

I'm working on a Wordpress site and I have set an SSL certificate. I got the following error,

Warning: Cannot modify header information - headers already sent by (output started at /var/www/mylink/wp-config.php:1) in /var/www/mylink/data/www/mylink/wp-login.php on line 411 Warning: Cannot modify header information - headers already sent by (output started at /var/www/mylink/data/www/mylink/wp-config.php:1) in /var/www/mylink/data/www/mylink/wp-login.php on line 424.

enter image description here

I have tried blank spaces, echo before php tag, and many more but was not able to solve this issue. I'm not able to open my admin panel and when I open my site with wp-admin URL, it shows only the above error. If I open my admin panel with wp-login.php, it shows login page but I'm not able to logged in. Any help is appreciated. Thanks. Please check the image for further clarification.

标签: phpwordpresssslwarnings

解决方案


您是否尝试过以下解决方案?ob_start(); ob_get_clean(); 它将获取当前缓冲区内容并删除当前输出缓冲区。


推荐阅读