Fatal error: eZ publish did not finish its request - need PHP JSON extension? [SOLVED]

Author Message

Lo' F.

Saturday 19 June 2010 9:56:27 am

Hi there.

I've been facing some problems when clicking on "Edit" in both Backend and Frontend sites and it seems it has something to do whith PHP JSON extension.

Here's the big issue:

Whenever an "edit" or "new draft" command is given all I get is a fatal error message:

"

Fatal error: eZ publish did not finish its request.

The execution of eZ publish was abruptly ended, the debug output is present below.

"

I thought it could have had something to do with max_execution_time (which I set to 120) or memory_limit (set to 256M). But despite the high value given to them, I kept having the same problem.

I then turned on display_error in php.ini file and now the fatal error message says:

"

Fatal error: Call to undefined function json_encode() in /var/www/vhosts/sitename.net/httpdocs/extension/ezoe/classes/ezoeserverfunctions.php on line 372

Fatal error: eZ Publish did not finish its request

The execution of eZ Publish was abruptly ended, debug information can be found in the log files normally placed in var/log/*

"

Reading here and there I got to know that ezoe requires ezjscore enabled (which is already) and that PHP 5.1.2 and higher needs a PHP JSON extension.

Since my PHP version is 5.1.6 how can I install JSON extension to make everything work fine?

loredanaebook.it

Lo' F.

Saturday 19 June 2010 2:05:25 pm

Done! Fatal error's gone and the edit functionality works just fine.

Here's how to install json extention:

- Download "php-json-ext-1.2.1" package

wget http://aurore.net/projects/php-json/php-json-ext-1.2.1.tar.bz2

- Unpack the compressed package

- Go into the package folder

cd php-json-ext-1.2.1

- Run ...

./configure
make
make install

- Add extension=json.so line to your [etc/]php.ini file

and finally restart the server and clear ini cache.

loredanaebook.it

Henrik Gren

Friday 08 October 2010 10:02:52 am

Thank you Lo'. I struggled with this problem for days. Your post helped me out.

To make this more accessible to the search engine of this forum I would state:

IF your development environment is running on PHP 5.2.x, you should assure that the production environment is either 5.2.x or that the JSON extension is enabled.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.