테마가 나타나지 않아요. 채택완료
수고하십니다.
갑자기 테마가 사라졌어요. ㅜㅜ
폴도안에 잘 설치 되어 있고
연동되어서 사용하고 있다가 갑자기 나타나지 않아요.

의심되는게 보안서버 https 이거 한번 수정하고 나서 안나타나는 거 같아요.

테마 설정에서 새로 고침해보면
아래와 같은 에러 메시지가 뜹니다.
조언 좀 얻을 수 있을까요?
감사합니다.
Copy
Warning: opendir(/home/users/0/kaad/web/도메인.com/G5_THEME_DIR/): failed to open dir: No such file or directory in /home/users/0/kaad/web/도메인.com/adm/admin.lib.php on line 107
Warning: readdir() expects parameter 1 to be resource, boolean given in /home/users/0/kaad/web/도메인.com/adm/admin.lib.php on line 108
Warning: closedir() expects parameter 1 to be resource, boolean given in /home/users/0/kaad/web/도메인.com/adm/admin.lib.php on line 117
이부분인데요.
Copy
// 테마
function get_theme_dir()
{
$result_array = array();
$dirname = G5_PATH.'/'.G5_THEME_DIR.'/';
$handle = opendir($dirname);
while ($file = readdir($handle)) {
if($file == '.'||$file == '..') continue;
if (is_dir($dirname.$file)) {
$theme_path = $dirname.$file;
if(is_file($theme_path.'/index.php') && is_file($theme_path.'/head.php') && is_file($theme_path.'/tail.php'))
$result_array[] = $file;
}
}
closedir($handle);
natsort($result_array);
return $result_array;
}
답변 3개
답변을 작성하려면 로그인이 필요합니다.
로그인
대신 에러 메시지는 사라졌어요.
http 접속해도 나타나지 않아요. 프로그래머가 아니라 코어 같은 건 어떻게 건드리는지 모릅니다.
잘 사용하고 있다가 아래 부분 잠깐 수정했다가 되돌리기 했는데
이런 증상이 나는 거 같아요.
define('G5_DOMAIN', 'https://www.도메인.com');
define('G5_HTTPS_DOMAIN', 'https://www.도메인.com');
/*
www.sir.co.kr 과 sir.co.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.co.kr 과 같이 입력하세요.
이곳에 입력이 없다면 www 붙은 도메인과 그렇지 않은 도메인은 쿠키를 공유하지 않으므로 로그인이 풀릴 수 있습니다.
*/
define('G5_COOKIE_DOMAIN', '.도메인.com');