Fatal error: Call to undefined function json_last_error()

Sejmen90's picture
Sejmen90
Mon, 02/22/2016 - 05:58
#1
Fatal error: Call to undefined function json_last_error()

After i save content with Awecontent I receive following message:

Fatal error: Call to undefined function json_last_error() in /sites/all/modules/awecontent/includes/awecontent.admin.inc on line 782

phuonght's picture
phuonght
Mon, 02/22/2016 - 21:37

Hi,

Problem occurs because your version php is older than 5.3. We highly recommend that you should update php to version 5.4 (see https://www.drupal.org/requirements)

You also can change/ edit code in file /sites/all/modules/awecontent/includes/awecontent.admin.inc, replace

if ($ac_data !== NULL && json_last_error() === JSON_ERROR_NONE) {

with

if ($ac_data !== NULL) {
Sejmen90's picture
Sejmen90
Tue, 02/23/2016 - 16:54

Thank You so much ! It works !

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.