HEADER 오류 관련 질문드립니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

HEADER 오류 관련 질문드립니다. 정보

HEADER 오류 관련 질문드립니다.

본문

특정 스킨을 적용했더니 게시판 상단에 아래와 같은 에러가 뜹니다.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/sax/www/lib/common.lib.php on line 1114

Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 36

common.lib.php의 내용은 래와 같습니다.

1111  // 결과값에서 한행 연관배열(이름으로)로 얻는다.
1112  function sql_fetch_array($result)
1113  {
1114  $row = mysql_fetch_assoc($result);
1115    return $row;
1116    }

어디를 손봐야 할까요?
  • 복사

댓글 전체

/home/sax/www/head.sub.php 30번째  sql_fetch_array() 함수를 사용하는데.
쿼리의 값이 NULL 일때 위와 같이 오류가 뜰껍니다.

급한대로 위 오류가 안나게 하려면, common.lib.php의 1114라인을 아래와 같이 수정
 $row = @mysql_fetch_assoc($result);

제대로 수정하려면
 /home/sax/www/head.sub.php 30번째 라인 위의 $sql 문의 결과가 나오도록 수정하세요.
© SIRSOFT
현재 페이지 제일 처음으로