지블로그업로드하고 인스톨 했는데..
불당버전말고..
그냥 버젼으로
다운하고, 업로드하고 , 인스톨 했는데..
Fatal error: Cannot redeclare is_utf8() (previously declared in /home/cpt/public_html/plugin/cybercash/cybercash.lib.php:826) in /home/cpt/public_html/lib/blog.lib.php on line 552
이렇게 뜨네요..
사이버 캐시 문제 같은데..도대체 뭐죠..
그냥 버젼으로
다운하고, 업로드하고 , 인스톨 했는데..
Fatal error: Cannot redeclare is_utf8() (previously declared in /home/cpt/public_html/plugin/cybercash/cybercash.lib.php:826) in /home/cpt/public_html/lib/blog.lib.php on line 552
이렇게 뜨네요..
사이버 캐시 문제 같은데..도대체 뭐죠..
댓글 1개
15년 전
텍스트가 UTF8 인지 검사하는 함수인데, 사이버캐시 라이브러리에
이미 같은 명령어가 포함되어 있기 때문에 뜨는 이러같습니다.
저도 방금 인스톨해서 같은 문제가 나왔기에 해결방법을 찾다가 발견하였습니다.
<해경방법>
http://홈페이지주소/blog/lib/blog.lib.php의 490번째 정도에 있는
function is_utf8($string) {
// From http://w3.org/International/questions/qa-forms-utf-8.html
return preg_match('%^(?:
[\x09\x0A\x0D\x20-\x7E] # ASCII
| [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte
| \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs
| [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte
| \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates
| \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3
| [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15
| \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16
)*$%xs', $string);
}
이 함수를 제거해주세요.
제거하고 다시 블로그 접속해보면, 이번엔 Charset에러라고 뜰겁니다.
이것도 또한 명령어가 두번 나왔기 때문에 뜨는 것으로,
809번째 정도에 보면 " Charset 을 변환하는 함수" 항목이 나옵니다
이것도 마찬가지로
function convert_charset($from_charset, $to_charset, $str) {
if (function_exists('iconv'))
return iconv($from_charset, $to_charset, $str);
elseif (function_exists('mb_convert_encoding'))
return mb_convert_encoding($str, $to_charset, $from_charset);
else
die("Not found 'iconv' or 'mbstring' library in server.");
}
까지 지워주시고 접속해보시면, 정상적으로 나올겁니다.^^
이미 같은 명령어가 포함되어 있기 때문에 뜨는 이러같습니다.
저도 방금 인스톨해서 같은 문제가 나왔기에 해결방법을 찾다가 발견하였습니다.
<해경방법>
http://홈페이지주소/blog/lib/blog.lib.php의 490번째 정도에 있는
function is_utf8($string) {
// From http://w3.org/International/questions/qa-forms-utf-8.html
return preg_match('%^(?:
[\x09\x0A\x0D\x20-\x7E] # ASCII
| [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte
| \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs
| [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte
| \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates
| \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3
| [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15
| \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16
)*$%xs', $string);
}
이 함수를 제거해주세요.
제거하고 다시 블로그 접속해보면, 이번엔 Charset에러라고 뜰겁니다.
이것도 또한 명령어가 두번 나왔기 때문에 뜨는 것으로,
809번째 정도에 보면 " Charset 을 변환하는 함수" 항목이 나옵니다
이것도 마찬가지로
function convert_charset($from_charset, $to_charset, $str) {
if (function_exists('iconv'))
return iconv($from_charset, $to_charset, $str);
elseif (function_exists('mb_convert_encoding'))
return mb_convert_encoding($str, $to_charset, $from_charset);
else
die("Not found 'iconv' or 'mbstring' library in server.");
}
까지 지워주시고 접속해보시면, 정상적으로 나올겁니다.^^
게시판 목록
지블로그 질답
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 649 | 12년 전 | 3447 | ||
| 648 | 12년 전 | 3213 | ||
| 647 | 12년 전 | 2852 | ||
| 646 |
GOODGOOD
|
12년 전 | 3338 | |
| 645 |
GOODGOOD
|
12년 전 | 3439 | |
| 644 |
leeba37
|
12년 전 | 3218 | |
| 643 |
sdrstone0
|
12년 전 | 2524 | |
| 642 |
sidepth
|
12년 전 | 2180 | |
| 641 | 13년 전 | 2203 | ||
| 640 | 13년 전 | 2477 | ||
| 639 | 13년 전 | 2022 | ||
| 638 |
미노mono
|
13년 전 | 2931 | |
| 637 | 13년 전 | 2217 | ||
| 636 |
cheng
|
13년 전 | 2916 | |
| 635 | 13년 전 | 2875 | ||
| 634 | 13년 전 | 3143 | ||
| 633 |
|
13년 전 | 3330 | |
| 632 | 13년 전 | 3608 | ||
| 631 |
|
13년 전 | 3020 | |
| 630 | 13년 전 | 2634 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기