Warning이 뜨는데 어떻게 해야하나?
본문
그누5 설치하고 홈피로 들어갔더니
아래와 같은 경고가 떠요.
어떻게 해야 제대로 될까요?
Warning: Cannot modify header information - headers already sent by
(output started at /www/zelkova.me/public_html/config.php:1) in
/www/zelkova.me/public_html/common.php on line
580
Warning: Cannot modify header information - headers
already sent by (output started at /www/zelkova.me/public_html/config.php:1) in
/www/zelkova.me/public_html/common.php on line
582
Warning: Cannot modify header information - headers
already sent by (output started at /www/zelkova.me/public_html/config.php:1) in
/www/zelkova.me/public_html/common.php on line
583
Warning: Cannot modify header information - headers
already sent by (output started at /www/zelkova.me/public_html/config.php:1) in
/www/zelkova.me/public_html/common.php on line
584
Warning: Cannot modify header information - headers
already sent by (output started at /www/zelkova.me/public_html/config.php:1) in
/www/zelkova.me/public_html/common.php on line
585
Warning: Cannot modify header information - headers
already sent by (output started at /www/zelkova.me/public_html/config.php:1) in
/www/zelkova.me/public_html/common.php on line 586
!-->
답변 1
config.php 1줄에서 불필요한 공백이 출력되는 바람에 헤더가 구워지지 않고 있습니다.
이대로 사용하면 로그인이 풀리는 문제가 생길 수 있으니 반드시 고쳐야 해요.
config.php 맨 위에 <? 태그를 열기 전에 공백이 있는지 확인해 보시고,
만약 UTF-8이라면 BOM이 들어갔는지도 확인해 보세요.
만약 윈도우 메모장에서 편집했다면 100% BOM 때문일 겁니다.
답변을 작성하시기 전에 로그인 해주세요.