Elxis CMS Forum
Extensions => Bots and plugins => Topic started by: jimmyz on July 09, 2010, 11:32:22
-
Hi,
By the time I press translate button (elxis v2009.2), after I've chosen the target language, I get this:
Javascript
Function json_decode is not available in your system and therefor translation can not continue. json_decode requires PHP 5.2 or greater.
Does this mean that my host uses an outdated version of PHP?
It is no big deal, just asking.
Thank you.
-
Does this mean that my host uses an outdated version of PHP?
Yes!
You can verify this if you go to your administator area ( back-end)
Tools -> updiag - > ( and click on the button ) PHP.
;)
-
This is not a javascript error, it is an Elxis warning.
The translation feature requires function json_decode which is available in PHP 5.2+
You can solve this issue in 2 ways:
1. By upgrading your PHP installation
2. By finding a json_decode equivalent function and place it somewhere globally accessible in Elxis (i.e. in Elxis loader).
administrator/includes/translator.class.php
line 67
if (!function_exists('json_decode')) { //PHP 5.2+
$this->last_error = 'Function json_decode is not available in your system and therefor translation can not continue. json_decode requires PHP 5.2 or greater.';
return false;
}