관리자 로그인시 간혹 [기본 URL 설정이 안 되어 있습니다.] 라는 오류 페이지가 뜰 때가 있습니다.

웹사이트를 보면 아주 간혹이라고 하는데 저는 자주 발생하네요. 

 

원인은 /classes/module/ModuleHandler.class.php 파일의 

 

if ($host && ($host != $defaultHost && $host != $site_module_info->domain))

{

throw new Exception('msg_default_url_is_null');

}

 

부분인데... $host 값과 $defaultHost 값이 다를 때 발생하는군요. $site_module_info->domain은 어차피 다르고...

 

$host -> www.도메인명.com

$defaultHost -> 도메인명.com

$site_module_info->domain -> http://도메인명.com

 

해당 파일의 관련된 로직을 검토해 본 결과

/files/config/db.config.php 파일(최초 설치시 생성되는 파일)의 default_url 값에서 도메인명 앞에 www를 붙여주는 것으로 해결 끝!

'XE 1.11.x' 카테고리의 다른 글

IIS에서 1.11.6 FileHandler.class.php 오류  (0) 2023.02.21
xe-module-shop 설치 후 에러 해결  (0) 2018.05.12
XE 함수 (config/func.inc.php)  (0) 2017.03.09
XML쿼리 사용할 때 유의할 점  (0) 2017.02.28
XE url 요청 프로세스  (0) 2017.02.28

+ Recent posts