eZ Community » Forums » General » 4.4 does not display subitems in admin
expandshrink

4.4 does not display subitems in admin

4.4 does not display subitems in admin

Wednesday 29 September 2010 10:28:23 am - 25 replies

I have many problems with the new release with ezwebin and admin2 design:

- I cannot see the subitems list when I watch a node, and no 'create child node here' button

- no object sorting order can be set;

- If I try to manage sessions from setup I receive an error;

- the setup section turns mainly in english from italian after all caches clear.

I reinstalled the version with ez components but the problems are the same.

Maybe these problems are connected to two issues I found in beta2 :

http://issues.ez.no/IssueView.php?Id=17259&activeItem=2

http://issues.ez.no/IssueView.php?Id=17260&activeItem=1

Modified on Wednesday 29 September 2010 11:41:11 am by Sandra Parente

Wednesday 29 September 2010 11:43:41 am

I found this in error.log:

Error ocurred using URI: /extension/ezjscore/design/standard/lib/yui/2.8.1/build/utilities/utilities.js

I opened the admin interface with all browsers on mac and windows and on IE7 I receive this error:

Messaggio: 'YAHOO.util.Cookie' è nullo o non è un oggetto
Linea: 788
Carattere: 1
Codice: 0
URI: http://admin.zbliss.it/var/ezwebin_site/cache/public/javascript/deab27a76a408ab11cbaf54b1010d9fa.js

Modified on Wednesday 29 September 2010 12:05:35 pm by Sandra Parente

Wednesday 29 September 2010 12:06:52 pm

- I can confirm subitems issue with Chrome

- For ordering you have the tab on node view called "Ordering"

- session handling is changed in ez4.4, maybe you are missing something in PHP?

Wednesday 29 September 2010 12:19:27 pm

Thanks for your answer Ivo.

- I think it's a java problem, the part under "Subitems ()" is loaded (I can read it from page source) but not displayed, no matter the OS or the browser. Seems a cookie problem;

- Of course the ordering is works from the new tab, but I cannot see the result because subitems are not displayed (silly me!)

- About session handling do you know where I can find more doc on 4.4 php settings?

Wednesday 29 September 2010 12:21:40 pm

A little more information there : http://issues.ez.no/IssueView.php?Id=16678&

Cheers !

Wednesday 29 September 2010 12:26:00 pm

Thanks for your answer Ivo.

- I think it's a java problem, the part under "Subitems ()" is loaded (I can read it from page source) but not displayed, no matter the OS or the browser. Seems a cookie problem;

- Of course the ordering is works from the new tab, but I cannot see the result because subitems are not displayed (silly me!)

- About session handling do you know where I can find more doc on 4.4 php settings?

try regenerate autoloads because 4.4 uses new ezpSessionHandlerPHP for anonymous usere. Check CHANGELOG 4.4 in doc folder...

Wednesday 29 September 2010 3:09:50 pm

- Solution for the Subitems non displayed: follow exactly this instruction for virtual host setup;

http://doc.ez.no/eZ-Publish/Techn.../4.x/Installation/Virtual-host-setup

- The translation problem is solved by repeating cache clearing many times

- Session handling problem: regenerating autoloads does not solve it

Cheers!

Thursday 30 September 2010 4:27:55 pm

To make it work, I commented out the first 2 FilesMatch directives in .htaccess and subitems then showed in administration. After that I uncomment those 2 FilesMatch directive and now everything works like a charm.

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>
 
<FilesMatch "(^index\.php|favicon\.ico|index_treemenu\.php|\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

This is very strange bug. I am not satisfied how did I manage to solve it(?), because I don't like when things are solved by it self.

EDIT: Now I see that in content structure tree menu subitems are not showing. sad.gif Emoticon

Modified on Thursday 30 September 2010 4:36:17 pm by Mario Ivancic

Thursday 30 September 2010 4:28:21 pm

I guess that by session "error", you are really referring to the "information" that the eZ session handler you are using does not support administrating session. The default eZ session handler 'ezpSessionHandlerPHP' does not support this as it lets php handles sessions, by default that means sessions are stored to disk using the default PHP session handler: 'files' happy.gif Emoticon

So, there are handlers at two levels, in php (files / memcached..) and in ez (db / php).

If you for some reason need to administrate session, you can switch back to db session handler by specyfing site.ini\[Session]\Handler=ezpSessionHandlerDB in your settings.

Friday 01 October 2010 9:18:18 pm

Thanks Andrè, I see now that the new session handler is well described in session_enhancement.txt, but I think that the "information" in admin interface is too short. It would be better to put a link to doc or just explain in few words the two session handlers as you have done in your post.

Sunday 03 October 2010 1:34:46 pm

- I can confirm subitems issue with Chrome

It works without problems in my Chrome (7.0), even faster than in FF. With what version of Chrome did you try it?

But the display of the subitems is not working smoothly, I have reported it with more details here:

http://share.ez.no/forums/general/better-subitems-display-in-4.4-admin

Monday 04 October 2010 5:45:46 pm

Sorry if this is a redundant question, but I am having the same problem. I have read through the thread, and tried a couple things: editing the Session/Handler in site.ini, and regenerating autoloads. Unfortunately, my hosting solution at the moment will not allow me to run as a virtual host.

Is there any other way to solve this issue?

Regards and thanks for the help.

Monday 04 October 2010 11:54:15 pm

Sorry if this is a redundant question, but I am having the same problem. I have read through the thread, and tried a couple things: editing the Session/Handler in site.ini, and regenerating autoloads. Unfortunately, my hosting solution at the moment will not allow me to run as a virtual host.

Is there any other way to solve this issue?

Regards and thanks for the help.

Try with the rewrite rules in .htacces.

The subitems are fetched via an Ajax call so first try to inspect it's response, it should return JSON code with the data of subitems.

If it returns anything else, like some HTML page or 404 error, then it's probably a problem in the rewrite rules.

Also, what browser are you using?

Wednesday 06 October 2010 7:31:56 am

Try with the rewrite rules in .htacces.

The subitems are fetched via an Ajax call so first try to inspect it's response, it should return JSON code with the data of subitems.

If it returns anything else, like some HTML page or 404 error, then it's probably a problem in the rewrite rules.

Also, what browser are you using?

Marko,

Thank you very much for the response, I followed your advice and dove more into what was wrong with the rewrite rules and eventually, this worked for getting the virtual host working via .htaccess, getting rid of the "index.php?" in the url, and allowing subitems to display:

DirectoryIndex index.php

RewriteEngine On

# RewriteCond %{HTTP_HOST} ^webdav\..*
# RewriteRule ^(.*) webdav.php [L]
# RewriteCond %{HTTP_HOST} ^soap\..*
# RewriteRule ^(.*) soap.php [L]

RewriteRule content/treemenu/? /index_treemenu.php [L]

RewriteRule ^var/storage/.* - [L]
RewriteRule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/([^/]+/)?cache/(texttoimage|public)/.* - [L]

RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]
RewriteRule ^share/icons/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
Rewriterule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^packages/styles/.+/thumbnail/.* - [L]

RewriteRule ^favicon\.ico - [L]
RewriteRule ^robots\.txt - [L]

# Uncomment the following lines when using popup style debug.
# RewriteRule ^var/cache/debug\.html.* - [L]
# RewriteRule ^var/[^/]+/cache/debug\.html.* - [L]
RewriteRule .* index.php [L]

Thanks for the help!

Wednesday 06 October 2010 10:23:10 am

Actually, I may have spoken too soon. Once I made the above corrections, the sub-items began displaying. However, after working on the site building some overrides, I noticed that once again the subitems in the admin had disappeared.

I am viewing the site with Firefox 3.6.10 and Chrome 5.0.375.70.

Using Firebug I inspected the div "box-content" which appeared to contain all the proper ajax calls. However, when i go to see it's related style in the CSS window of Firebug, it is not picking up the style. Either way, the "Data Error" message is not displayed, but neither are the subitems.

When I do log out and back in to the admin, the items sometimes appear for a brief second.

Any advice?

Wednesday 06 October 2010 11:22:07 am

Try clearing the eZ cache and then the browser cache.

What JSON do you get in the respond to the ajax call?

For me it works in FF 3.6.10, and in Chrome 7.0.536, it just has some performance problems.

Wednesday 06 October 2010 12:00:34 pm

I cleared the eZ cache, and am now looking for a good method to see what JSON is sent back from the ajax call. I m trying to use firebug's JSON inspector, and i'm seeing the following -

it's working for children.tpl:

i see a JSON response with the appropriate number of childen and all their details are correct, and the admin displays SubItems(5) correctly. but the div directly under it "box-content" does not appear at all, nor can i seem to bring up the json response.

I'm not sure what is going on as it is probably worth mentioning that none of the action controls are showing up now either... for adding an object... etc

Modified on Wednesday 06 October 2010 12:35:40 pm by Duffy Walsh

Wednesday 06 October 2010 1:54:13 pm

Hm, this could maybe be a problem related to ezjscore extension.

Do you get any JS errors in firebug?

When the subitems are NOT shown, what CSS and JS files are loaded with your page? Do they have the right CSS/JS content?

Friday 08 October 2010 10:31:40 pm

Hm, this could maybe be a problem related to ezjscore extension.

Do you get any JS errors in firebug?

When the subitems are NOT shown, what CSS and JS files are loaded with your page? Do they have the right CSS/JS content?

Thanks again for the response Marko, I am just getting back to this now.

There are two JS errors in firebug.

YUI not loading

Here is the list of CSS files loaded:

<link rel="stylesheet" type="text/css" href="/design/admin2/stylesheets/core.css" />
<link rel="stylesheet" type="text/css" href="/design/standard/stylesheets/debug.css" />
<link rel="stylesheet" type="text/css" href="/design/admin2/stylesheets/pagelayout.css" />
<link rel="stylesheet" type="text/css" href="/design/admin2/stylesheets/content.css" />
<link rel="stylesheet" type="text/css" href="/design/admin2/stylesheets/theme/rounded.css" />
<link rel="stylesheet" type="text/css" href="/design/admin2/stylesheets/theme/yui_datatable.css" />
<link rel="stylesheet" type="text/css" href="/design/admin2/stylesheets/theme/yui_menu.css" />
<link rel="stylesheet" type="text/css" href="/design/admin2/stylesheets/theme/yui_container.css" />

It seems that maybe i need an additional RewriteRule to allow access to the extension/ezjscore directories it is trying to access yui-min.js and yuiloader-min.js

Modified on Friday 08 October 2010 10:32:36 pm by Duffy Walsh

Friday 08 October 2010 11:58:42 pm

See what are the links to ALL the JS files in the page. Then open in your browser all this links and for each one see what you get. If you get HTML content then it's a problem in rewrite rules. If you get proper JS code then the problem is somewhere else.

Wednesday 13 October 2010 12:11:17 am

I have solved this issue by modifying apache rewrite rules, because ezjscore keeps YUI scripts in the /design/standard/lib/ subdirectory, instead of /design/standard/javascript/, as one would expect. Therefore it won't work if you follow just the default installation instructions for the virtual host setup and the scripts are not loaded from an external CDN.

The modified rule:

RewriteRule ^/extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]

This is also mentioned in the documentation for the extension.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from