"Data Error." on Sub items load

Author Message

Simone D'Amico

Monday 04 October 2010 9:01:03 am

Hi to everyone. :)

I've just installed the new 4.4 version on my server and, in the admin area, when page tries to load the sub items, I get this error instead of elements:

"Data error."

I've seen the JSON call:

- http://host.com/ez/index.php?/ezadmin/ezjscore/call/ezjscnode::subtree::2::25::0::priority::1?ContentType=json

The call hasn't errors and it returns valid results.

I've also read this topic http://issues.ez.no/IssueView.php?Id=16845&activeItem=2 but I haven't the same error of the user. My JSON call works fine but I also tried to update ezjscore extension as has been suggested on that topic but without success.

How can I resolve this problem?

André R.

Tuesday 05 October 2010 12:49:11 am

Your' running fastcgi mode, so there are two "?" in your url, so my guess is that the last one is stripped out and code does not return json response.

You can find the issue here:
http://issues.ez.no/IssueView.php?Id=15176&activeItem=4

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

Simone D'Amico

Tuesday 05 October 2010 1:07:28 am

Hi André, thanks for the reply.

The issue on your post refers to IIS server but I'm using Apache+PHP. Anyway with phpinfo() I found this:

Server API CGI/FastCGI

so I think it's enabled. I don't know how I can disable it, maybe in php.ini but my hosting doesn't allow me to access on this file. I opened a ticket on its support and I'm waiting for a response.

I'll let you know if I solve the problem with your solution! :)

Thanks so much!!

EDIT:

while I'm waiting the hosting response, I've edited the class as in your link and now it works!! :)

Gaetano Giunta

Tuesday 05 October 2010 12:25:09 pm

While we wait for the final correct fix for eZP to work in fasctgi mode, why not patch the ezjscore code so that it will not append ?ContentType=json when it detects a '?' in the base url?

Principal Consultant International Business
Member of the Community Project Board

Brendan Pike

Thursday 28 October 2010 10:27:25 pm

I'm having a similar issue, its working across most of the site however I get the sub-items "Data error." when viewing User Groups 2 tier or lower.

How do I go about debugging this?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Herve Njoya

Saturday 22 January 2011 12:39:08 am

HI all

Am new to EZ.publish.

It looks like a great framework, but I don't understand why a problem like the 'data error' thing is not solved but posting a update.

In any case it seem that by putting

$isCGI=FALSE;;

in lib/ezutils/classes/ezsys.php on line 923

you get the problem sorted.

For a new person, all that can seem overwhelming when you're trying to discover how to use a new framework.

Well, here I go, now to test if all the trouble was really worth it.

thx for all the help from the comunity

Jean-Luc Nguyen

Monday 14 March 2011 9:41:25 am

Hello,

Trying to upgrade 4.3 to 4.4, with admin2 design,

I have the same issue. Followed this topic and http://doc.ez.no/eZ-Publish/Upgrading/Upgrading-to-4.4/Upgrading-from-4.3.x-to-4.4.x documentation, Firebug is getting me an error calling this:

http://DOMAIN/admin/ezjscore/call/ezjscnode::subtree::5::50::0::published_date::1?ContentType=json

Even if I force to $isCGI=FALSE; in lib/ezutils/classes/ezsys.php

My Apache log file is displaying:

Call to a member function attribute() on a non-object in ROOT/extension/ezjscore/classes/ezjscajaxcontent.php on line 252

When searching in details, $contentObject->attribute( 'current' )->attribute('creator') doesn't exist. However, it is working great with level >= 3 nodes.

I may miss something, but what step?

Struggling, any help is welcome,

Thanks!

http://www.acidre.com

Jean-Luc Nguyen

Monday 14 March 2011 10:25:25 am

"

Hello,

Trying to upgrade 4.3 to 4.4, with admin2 design,

I have the same issue. Followed this topic and http://doc.ez.no/eZ-Publish/Upgrading/Upgrading-to-4.4/Upgrading-from-4.3.x-to-4.4.x documentation, Firebug is getting me an error calling this:

http://DOMAIN/admin/ezjscore/call/ezjscnode::subtree::5::50::0::published_date::1?ContentType=json

Even if I force to $isCGI=FALSE; in lib/ezutils/classes/ezsys.php

My Apache log file is displaying:

Call to a member function attribute() on a non-object in ROOT/extension/ezjscore/classes/ezjscajaxcontent.php on line 252

When searching in details, $contentObject->attribute( 'current' )->attribute('creator') doesn't exist. However, it is working great with level >= 3 nodes.

I may miss something, but what step?

Struggling, any help is welcome,

Thanks!

"

EDIT 2 hours later: OK I found out. I think this is a bug. On my project, marketing people, when leaving, delete their eZ account. So their are still nodes in the backend without author anymore. This is not taken in account with the kernel code. Created an issue: http://issues.ez.no/IssueView.php?Id=18139

http://www.acidre.com

Peter Keung

Monday 14 March 2011 10:43:06 am

Hi Jean-Luc,

See this thread for a bit more info: http://share.ez.no/forums/general/remind-your-editors-to-disable-user-accounts-instead-of-deleting-them

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Jean-Luc Nguyen

Thursday 17 March 2011 7:56:25 am

"

Hi Jean-Luc,

See this thread for a bit more info: http://share.ez.no/forums/general/remind-your-editors-to-disable-user-accounts-instead-of-deleting-them

"

Hi Peter,

I definitely know that, but I cannot control action editors. This has been reported in issues and solved for eZ Publish 4.5.

http://www.acidre.com

Peter Keung

Thursday 17 March 2011 8:14:33 am

"
"

Hi Jean-Luc,

See this thread for a bit more info: http://share.ez.no/forums/general/remind-your-editors-to-disable-user-accounts-instead-of-deleting-them

"

Hi Peter,

I definitely know that, but I cannot control action editors. This has been reported in issues and solved for eZ Publish 4.5.

"

Sorry, I wasn't trying to point out the obvious. I was linking to that thread to help you in re-assigning owners and also so you could see that there was an existing issue (#17443) and that it was solved.

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Jean-Luc Nguyen

Thursday 17 March 2011 9:05:32 am

"
"
"

Hi Jean-Luc,

See this thread for a bit more info: http://share.ez.no/forums/general/remind-your-editors-to-disable-user-accounts-instead-of-deleting-them

"

Hi Peter,

I definitely know that, but I cannot control action editors. This has been reported in issues and solved for eZ Publish 4.5.

"

Sorry, I wasn't trying to point out the obvious. I was linking to that thread to help you in re-assigning owners and also so you could see that there was an existing issue (#17443) and that it was solved.

"

Don't worry, I understand ;-) Thanks a lot for the info.

http://www.acidre.com

Giorgio DI Natale

Wednesday 20 July 2011 12:38:19 am

Hi,

 I'm new in eZ. I tried to implement all suggestions but it still does not work.

I finally found an issue in the vhost configuration. I had this line:

RewriteRule ^/([^/]+/)?ezjscore/call.* /index_ajax.php [L]

By removing it, it works :)

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