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.