Forums / Install & configuration / Fatal error: eZ publish did not finish its request - need PHP JSON extension? [SOLVED]

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.

eZ debug

Timing: Jan 17 2025 23:51:15
Script start
Timing: Jan 17 2025 23:51:15
Module start 'content'
Timing: Jan 17 2025 23:51:15
Module end 'content'
Timing: Jan 17 2025 23:51:15
Script end

Main resources:

Total runtime0.1168 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.4531180.7734
Module start 'content' 0.00660.0046 770.226698.3203
Module end 'content' 0.01120.1055 868.5469528.0313
Script end 0.1167  1,396.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.8128200.0002
Check MTime0.00131.0818200.0001
Mysql Total
Database connection0.00100.868910.0010
Mysqli_queries0.078667.31811410.0006
Looping result0.00100.86121390.0000
Template Total0.105290.110.1052
Template load0.00080.662610.0008
Template processing0.104489.393010.1044
Override
Cache load0.00050.427210.0005
Sytem overhead
Fetch class attribute can translate value0.00060.471710.0006
XML
Image XML parsing0.00030.217610.0003
General
dbfile0.00171.4509200.0001
String conversion0.00000.004130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs