i know but what if hosting doesn't have it
i've fixed somehow by editing admin/inc/basic.php -- this is for website display
and for admin by editing i18base/backend.class.php in plugin folder
<?php
include("JSON.php");
if( !function_exists('json_encode') ) {
function json_encode($data) {
$json = new Services_JSON();
return( $json->encode($data) );
}
}
// Future-friendly json_decode
if( !function_exists('json_decode') ) {
function json_decode($data, $bool) {
if ($bool) {
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
} else {
$json = new Services_JSON();
}
return( $json->decode($data) );
}
}
?>
and adding JSON.php file to it
as described here
http://veselov.sumy.ua/277-oshibka-call-...ecode.html
and class is here
http://mike.teczno.com/JSON.tar.gz
i've fixed somehow by editing admin/inc/basic.php -- this is for website display
and for admin by editing i18base/backend.class.php in plugin folder
<?php
include("JSON.php");
if( !function_exists('json_encode') ) {
function json_encode($data) {
$json = new Services_JSON();
return( $json->encode($data) );
}
}
// Future-friendly json_decode
if( !function_exists('json_decode') ) {
function json_decode($data, $bool) {
if ($bool) {
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
} else {
$json = new Services_JSON();
}
return( $json->decode($data) );
}
}
?>
and adding JSON.php file to it
as described here
http://veselov.sumy.ua/277-oshibka-call-...ecode.html
and class is here
http://mike.teczno.com/JSON.tar.gz