답변 3개
답변에 대한 댓글 2개
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); }
여기서 지정해 줍니다. 소스를 확인해 보세요. 그누보드 버전마다 상이할 수 있습니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
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);
현재 발생한 오류 목록입니다. 어떻게 수정해야 하는지 아시나요?