게시판 글쓰기 오류
본문
안녕하세요. 서버 이전 작업 중, 데이터는 모두 이전 완료했는데 게시판 글쓰기 시 오류가 발생합니다.
지금 이 페이지가 작동하지 않습니다.
도메인주소.com이(가) 현재 해당 요청을 처리할 수 없습니다.
HTTP ERROR 500
이런 메세지가 뜨는데, 원인을 알려면 어떻게 해야 할까요?
답변 3
게시판 스킨을 백업해두고
그누보드 기본 스킨으로 대체 합니다.
이후 글이 써진다면 -> 기존 스킨문제
그래도 글이 않써진다면 -> 서버 문제
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);
}
여기서 지정해 줍니다. 소스를 확인해 보세요. 그누보드 버전마다 상이할 수 있습니다.