사이트 내에서 에디터 자동완성 모듈이 일반회원은 작동이 되지않아 손보던 도중 관리자 페이지의 html class를 지웠다가 다시 설정했습니다.
그게 화근이었는지 갑자기 로그인이 풀려버렸고, 여러 회차 로그인을 하려고해도 반응이 없더니 이제는 사이트에 들어가려고 하면
Fatal Error : Cannot create temporary file. Please check permissions.
이라는 오류가 발생합니다.
찾아보니 rhymix/classes/template/TemplateHandler.class.php 항목에 아래와 같은 소스가 적혀있는데
// make compiled file | |
if(!file_exists($this->compiled_file) || filemtime($this->compiled_file) < $latest_mtime) | |
{ | |
$buff = $this->parse(); | |
if(Rhymix\Framework\Storage::write($this->compiled_file, $buff) === false) | |
{ | |
$tmpfilename = tempnam(sys_get_temp_dir(), 'rx-compiled'); | |
if($tmpfilename === false || Rhymix\Framework\Storage::write($tmpfilename, $buff) === false) | |
{ | |
return 'Fatal Error : Cannot create temporary file. Please check permissions.'; | |
} | |
$this->compiled_file = $tmpfilename; | |
} | |
} |
어떻게 해결을 하면 좋을지 모르겠습니다. 도와주시면 정말 감사하겠습니다...!
files 권한이 잘못되서 생기는 오류 같습니다.
files 폴더 및 하위 폴더 권한을 777로 바꿔주세요. ( https://xetown.com/tips/5343 )
ssh를 사용하실수 있다면 xe가 설치된 기본 루트로 들어가셔서, chmod -R 777 files 를 실행시켜주시면 됩니다.