[오류문]-Use of undefined constant mb_id - assumed 'mb_id' in...이런 오류가 뜨는데 해결법? > 그누4 질문답변

그누4 질문답변

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

[오류문]-Use of undefined constant mb_id - assumed 'mb_id' in...이런 오류가 뜨는데 해결법? 정보

[오류문]-Use of undefined constant mb_id - assumed 'mb_id' in...이런 오류가 뜨는데 해결법?

본문

게시판 스킨을 수정하는 과정에서 List 쪽은 잘되는데
Write페이지를 들어갈 때 나타나는 오류입니다.

/////////////////
2039
Notice: Use of undefined constant mb_id - assumed 'mb_id' in
...../bbs/write.php on line 376

Notice: Use of undefined constant bo_content_tail - assumed 'bo_content_tail' in
.....bbs/board_tail.php on line 5

Notice: Use of undefined constant bo_image_tail - assumed 'bo_image_tail' in
...../bbs/board_tail.php on line 9

Notice: Use of undefined constant bo_include_tail - assumed 'bo_include_tail' in
../bbs/board_tail.php on line 13


/////////

write.php
376줄에는...
if (!$member[mb_id])

board_tail.php

// 게시판 관리의 하단 내용
5줄
if ($board[bo_content_tail])

// 게시판 관리의 하단 이미지 경로
9줄
if ($board[bo_image_tail])
 
// 게시판 관리의 하단 파일 경로
13줄
if ($board[bo_include_tail])

 

[오류문]-Use of undefined constant mb_id - assumed 'mb_id' in...
이런 오류가 뜨는데 해결법 좀 부탁드려요.


 

  • 복사

댓글 전체

php.ini 에서 다음과 같이 설정합니다.

error_reporting  =  E_ALL & ~E_NOTICE



또는 php.ini를 수정하실수 있는 상황이 아닐 경우 상단에 아래의 코드를 넣어주시면 될것 같네요.

error_reporting(E_ALL ^ E_NOTICE);
근본적으로 뭐가 문제가 있어서 페이지에서 쓰기기능이 안돼는지를 알아야하는데요.
오류가 있으면 반드시 그 메시지가 떠주는 게 더 좋은데요.
페이지에 오류메시지가 안뜨는 거 말고 오류가 없도록 고칠 수 있어야 하거든요.
© SIRSOFT
현재 페이지 제일 처음으로