글쓰기 html 오류
본문
글쓰기 html 체크하고 글을 올리면 이런 오류메세지가 뜹니다.
도와주세요~!!
Warning: include_once(/public_html/plugin/htmlpurifier/HTMLPurifier.standalone.php): failed to open stream: No such file or directory in public_html/lib/common.lib.php on line 561
Warning: include_once(): Failed opening '/public_html/plugin/htmlpurifier/HTMLPurifier.standalone.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in public_html/lib/common.lib.php on line 561
Fatal error: Class 'HTMLPurifier_Config' not found in /public_html/lib/common.lib.php on line 562
-------------------------
// 내 도메인도 추가
array_push($domains, $_SERVER['HTTP_HOST'].'/');
$safeiframe = implode('|', $domains);
include_once(G5_PLUGIN_PATH.'/htmlpurifier/HTMLPurifier.standalone.php');
$config = HTMLPurifier_Config::createDefault();
// data/cache 디렉토리에 CSS, HTML, URI 디렉토리 등을 만든다.
$config->set('Cache.SerializerPath', G5_DATA_PATH.'/cache');
$config->set('HTML.SafeEmbed', false);
$config->set('HTML.SafeObject', false);
$config->set('Output.FlashCompat', false);
$config->set('HTML.SafeIframe', true);
$config->set('URI.SafeIframeRegexp','%^(https?:)?//('.$safeiframe.')%');
$config->set('Attr.AllowedFrameTargets', array('_blank'));
$purifier = new HTMLPurifier($config);
return $purifier->purify($html);
}
답변 3
/lib/common.lib.php 에 파일이 있나 확인 해보시고요~
있다면 게시판을 기본게시판으로 바꿔서 테스트 해보세요~
여기까지 문제없다면 스킨문제인것 같네요`
/plugin/htmlpurifier/HTMLPurifier.standalone.php
해당 화일이 없다는 오류입니다.
최근 버전의 그누보드5 소스를 다운받아서 htmlpurifier 폴더를 업로드하시면 될거 같습니다.
화일이 존재하는데 오류가 난다면 스킨상의 소스 오류 같습니다.
1.기존스킨 백업
2. 새거 스킨업로드
3. 기존스킨 덥기