Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Add latest Elxis wiki documentation in your site
 
Pages: [1]
  Print  
Author Topic: Javascript error  (Read 247 times)
jimmyz
Full Member
***
Offline Offline

Posts: 134



WWW
« on: July 09, 2010, 10:32:22 AM »

Hi,
By the time I press translate button (elxis v2009.2), after I've chosen the target language, I get this:

Code:
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.
Logged

Dirty Deeds Done Dirt Cheap
WebGift
Web Services
Elxis Community
Hero Member
*****
Online Online

Posts: 1418



WWW
« Reply #1 on: July 09, 2010, 10:54:29 AM »

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.
 Wink
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 5791



WWW
« Reply #2 on: July 09, 2010, 05:04:09 PM »

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;
}
« Last Edit: July 09, 2010, 05:06:19 PM by datahell » Logged

Elxis Team | Is Open Source | IOS Reservations | IOS Eshop
Pages: [1]
  Print  
 
Jump to: