테스트 사이트 - 개발 중인 베타 버전입니다

글쓰기 html 오류 채택완료

그땐이 8년 전 조회 6,103

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

1.기존스킨 백업

2. 새거 스킨업로드

3. 기존스킨 덥기

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

/plugin/htmlpurifier/HTMLPurifier.standalone.php

 

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

 

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

 

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

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

8년 전

/lib/common.lib.php 에 파일이 있나 확인 해보시고요~

 

있다면 게시판을 기본게시판으로 바꿔서 테스트 해보세요~

여기까지 문제없다면 스킨문제인것 같네요`

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인