글쓰기 html 오류

글쓰기 html 오류

QA

글쓰기 html 오류

답변 3

본문

글쓰기 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

/plugin/htmlpurifier/HTMLPurifier.standalone.php

 

해당 화일이 없다는 오류입니다.

 

최근 버전의 그누보드5 소스를 다운받아서 htmlpurifier 폴더를 업로드하시면 될거 같습니다.

 

화일이 존재하는데 오류가 난다면 스킨상의 소스 오류 같습니다.

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로