워드 프레스트를 3.2버전으로 업그레이드를 했는데, 업그레이드 후 php에러가 났다.
원인은 tweet-this 플러그인에서 발생한 json 모듈 오류다.
이 문제의 해결은 tweet-this 플러그인 내에 있는 tweet-this.php 파일에서 다음의 항목을 모두 주석처리를 한다.
/** * JSON functions.
* @package tweet-this
* @since 1.7
*/
if(!class_exists('Services_JSON')) {
if(version_compare($GLOBALS['wp_version'], '2.9', '<'))
require_once(TT_JSON);
else require_once(TT_WP_JSON);
}
if(!function_exists('json_encode')) {
function json_encode($data) {
$json = new Services_JSON();
return($json->encode($data));
}
}
if(!function_exists('json_decode')) {
function json_decode($data) {
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
return($json->decode($data));
}
}
그리고 나서, tweet-this를 1.8버전으로 업그레이드 시키면 된다.
20110718 : 그 사이에 3.2.1 한글버전이 나와서 다시 업그레이드 함.