One issue with eZ running on Nginx

Author Message

Michal Slocinski

Tuesday 15 March 2011 12:57:41 pm

Hi all,

I just installed latest 4.4 on Nginx and seems to be working just great with pretty much default settings apart of one thing.

Just after installation (default admin page) I noticed that all eZJSCore responses are returned as XML instead of JSON (even though URL looks like this: http://url/login/ezjscore/call/ezjscnode::subtree::2::25::0::priority::1?ContentType=json). I switch this installation to Apache and then everything goes back to normal so this must be some tiny incompatibility issue.

This results in for example "node children table" view in default admin site not being populated since it's running over eZJSCore since 4.4.

Does anyone has some ideas whether it is a bug or perhaps some configuration tweak required for Nginx?

André R.

Tuesday 15 March 2011 3:31:11 pm

This is fixed in 4.5 by supporting fastcgi better in the code without requiring ? after index.php thus support GET parameters.

See issue tracker roadmap for known issues in 4.4 with patches: http://issues.ez.no/RoadMap.php?Id=1245&ProjectId=3

Only workaround I know of for 4.4 is to hack eZSys and set $isCGI to false.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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

eZ debug

Timing: Jan 29 2025 14:40:56
Script start
Timing: Jan 29 2025 14:40:56
Module start 'layout'
Timing: Jan 29 2025 14:40:56
Module start 'content'
Timing: Jan 29 2025 14:40:56
Module end 'content'
Timing: Jan 29 2025 14:40:56
Script end

Main resources:

Total runtime0.0148 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.2344151.2109
Module start 'layout' 0.00500.0021 739.445336.6563
Module start 'content' 0.00710.0061 776.101690.1719
Module end 'content' 0.01320.0015 866.273429.9766
Script end 0.0148  896.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.3041140.0002
Check MTime0.00117.3155140.0001
Mysql Total
Database connection0.00095.768010.0009
Mysqli_queries0.002013.650330.0007
Looping result0.00000.074110.0000
Template Total0.00128.110.0012
Template load0.00106.491010.0010
Template processing0.00021.615110.0002
Override
Cache load0.00074.619910.0007
General
dbfile0.002214.692280.0003
String conversion0.00000.035440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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