게시판 글쓰기 오류

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
게시판 글쓰기 오류

QA

게시판 글쓰기 오류

본문

 

 

안녕하세요. 서버 이전 작업 중, 데이터는 모두 이전 완료했는데 게시판 글쓰기 시 오류가 발생합니다.

 

지금 이 페이지가 작동하지 않습니다.

도메인주소.com이(가) 현재 해당 요청을 처리할 수 없습니다.

HTTP ERROR 500

 

 

이런 메세지가 뜨는데, 원인을 알려면 어떻게 해야 할까요?

 

 

이 질문에 댓글 쓰기 :

답변 3

http 500 에러는

https://sir.kr/qa/?wr_id=405998

참고하셔서 구체적인 메시지 내용을 확인해 보세요.

감사합니다.

Warning: Use of undefined constant G5_THEME_PATH - assumed 'G5_THEME_PATH' (this will throw an Error in a future version of PHP) in /서버이름/www/common.php on line 494
>> if(is_file(G5_THEME_PATH.'/theme.config.php'))




Notice: Undefined index: device in /서버이름/www/common.php on line 546
>>  if ($_REQUEST['device']=='pc')




Notice: Undefined index: device in /서버이름/www/common.php on line 548
>>  else if ($_REQUEST['device']=='mobile')




Warning: include_once(/서버이름/www/plugin/editor/SmartEditor/editor.lib.php): failed to open stream: No such file or directory in /서버이름/www/bbs/write.php on line 3

>> bbs/write.php >>  include_once(G5_EDITOR_LIB);




Warning: include_once(): Failed opening '/서버이름/www/plugin/editor/SmartEditor/editor.lib.php' for inclusion (include_path='.:/usr/local/php73/lib/php') in /서버이름/www/bbs/write.php on line 3




Notice: Undefined index: wr_id in /서버이름/www/bbs/write.php on line 354 Fatal error: Uncaught Error: Call to undefined function editor_html() in /서버이름/www/bbs/write.php:405 Stack trace: #0 {main} thrown in /서버이름/www/bbs/write.php on line 405

354 >> set_session('ss_wr_id', $_REQUEST['wr_id']);
405 >> $editor_html = editor_html('wr_content', $content, $is_dhtml_editor);





현재 발생한 오류 목록입니다. 어떻게 수정해야 하는지 아시나요?

일부 warning은
common.php에서
error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_PARSE | E_USER_ERROR );

이렇게 바꾸어서 처리할 수 있습니다.

경로문제는 우선 _common.php를 살펴 보세요.

게시판 스킨을 백업해두고

그누보드 기본 스킨으로 대체 합니다.

 

이후 글이 써진다면 -> 기존 스킨문제

그래도 글이 않써진다면 -> 서버 문제

G5_THEME_PATH 변수(상수)가 지정되어 있지 않아 생기는 문제입니다.

이 것은 common.php에서

// 테마경로
if(defined('_THEME_PREVIEW_') && _THEME_PREVIEW_ === true)
    $config['cf_theme'] = isset($_GET['theme']) ? trim($_GET['theme']) : '';

if(isset($config['cf_theme']) && trim($config['cf_theme'])) {
    $theme_path = G5_PATH.'/'.G5_THEME_DIR.'/'.$config['cf_theme'];
    if(is_dir($theme_path)) {
        define('G5_THEME_PATH',        $theme_path);
        define('G5_THEME_URL',         G5_URL.'/'.G5_THEME_DIR.'/'.$config['cf_theme']);
        define('G5_THEME_MOBILE_PATH', $theme_path.'/'.G5_MOBILE_DIR);
        define('G5_THEME_LIB_PATH',    $theme_path.'/'.G5_LIB_DIR);
        define('G5_THEME_CSS_URL',     G5_THEME_URL.'/'.G5_CSS_DIR);
        define('G5_THEME_IMG_URL',     G5_THEME_URL.'/'.G5_IMG_DIR);
        define('G5_THEME_JS_URL',      G5_THEME_URL.'/'.G5_JS_DIR);
    }
    unset($theme_path);
}

여기서 지정해 줍니다. 소스를 확인해 보세요. 그누보드 버전마다 상이할 수 있습니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 0
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT