Folder showing as empty in user template

Author Message

Stephan Brezinsky

Sunday 14 March 2004 8:55:47 am

I have a custom class made ("Case History") with multiple instances in a "Cases" folder. In the admin section everythign works fine, you can browse to the cases folder and view the listing of case histories within it. However, when attempting to view the folder via the 'mydesign' design, the cases folder shows as empty.

I used fetch( content, list_count, hash( parent_node_id, nodeofcasesfolder ) in a template and it returns 0.

Any reason why the case histories would show up in the admin design, but not in the regular design? I have added read permission for the case history class to the anonymous user and still nothing.

Trond Åge Kvalø

Sunday 14 March 2004 1:38:36 pm

Are you using sections? Maybe your anonymous user doesn't have access to the section where the cases reside?

hmmm... and I presume you have cleared all caches, right?

That's my first guesses at least.

Hope this helps
trondåge

trondåge

Stephan Brezinsky

Sunday 14 March 2004 7:01:36 pm

In my anonymous user role permissions I have granted read access to the content module for all sections. Still no luck.

Alex Jones

Monday 15 March 2004 6:43:25 am

Did you also grant read permissions to Anonymous for your custom class?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Stephan Brezinsky

Monday 15 March 2004 1:01:32 pm

I granted read persmission to all classes, in all sections, to the anonymous user and still nothing. =[

I also tried assigning the 'cases' folder to the standard section (1) and that still didn't do anything

Stephan Brezinsky

Monday 15 March 2004 9:49:32 pm

In slightly better news, I have found out I am having this problem with all custom classes that I have created. None of them are showing up in folder listings.

I am able to fetch the custom class attributes via a fetch(content, class_attribute_list... but not able to fetch the objects themselves.

John Mina

Thursday 18 March 2004 3:06:18 am

HI Stephen
i have the same problem :((
ALex tried to help me too but no luck
if u found anything please let me know i am not able to do anythign
my version is "3.3-3 (3.3)" what is urs? may be the problem is by that version ?
Sincerely

Stephan Brezinsky

Thursday 18 March 2004 12:25:55 pm

I am using 3.3-3 as well. Through some miraculous event, I got it working. (I went to sleep, and the next day it was working). However while it shows the contents of the folders now, I cannot access the objects, I get a "Object is unavailable" error when clicking on the link to the custom class object.

John Mina

Thursday 18 March 2004 1:35:27 pm

HI
Very happy for you
hope i will get happy for me soon, but it has to be something not only sleepoing and getting it working i nthe second day.
Regarding the reaching the data, are you sure you r accessing the correct path, i mean item.data_map.X.content.....etc ?in the right way ?

do have any hints about how to reach a date field in the created object "what syntax used"?
Also i was looking if someone know : what is the difference between building my site on the installer version, and the destributiohn version, adn if i created a lot of work in the installers versions. any ideas?

Good luck

Stephan Brezinsky

Friday 19 March 2004 7:38:32 am

I was using $:item.name to check the existence of the objects. I am also using an upgraded version of 3.3-3 from 3.2 and it seems highly buggy, so I tried reinstalling 3.3 from scratch and porting my database over. So far everything is now working as it should on a fresh install. It took some time, but it was worth it.

John Mina

Saturday 20 March 2004 11:38:21 pm

hi
sorry, have u re installed 3.2 or u re-installed the same version 3.3 from scratch
THnx

John Mina

Saturday 20 March 2004 11:55:17 pm

HEy helloooo
I got it working now
and i guess i knew the problem where it was?

After assigning the role of reading the section by the anonymous user, you have , again you have , or we have :) to CLICK THE STORE button,

i foound it as when i went to the page of viewing roles i didn't find the rold that i added last time i got in here, which enables the anonymous user to view the children of this section. and when i asked to edit the roles i foudn the ROLE there. so i clicked STORE button ,as i said, and directly i found it there in the ASsigned roles, alsoi foudn the EzPublish template that is counting the custom class children, counted them instead of just showing ZERO "0"

BEST Regards
JOhn

Stephan Brezinsky

Sunday 21 March 2004 9:32:39 pm

well it looks like the error for me has magically re-appeared in a new way. i have managed to get it to dissapear by restoring a database backup, but then it'll show up again, without me even changing anything in the admin section.

i can still get the ojbects to list, but attempting to view them just generates a blank page, in the user AND admin sections.

John Mina

Monday 22 March 2004 2:16:10 am

HI Stephan
i ma realy sorry ot hear about this
well
Hope you read the comment i added yesterday ,please do and try to click the store button.
Else
Do u have a complete backup of the ez publish system or that only a backup for the db ?
if only the db
make sure that you didn't change the class name or class fields, and that they are the same that are used to be viewed i nthe user view

LEt me knwo wht is going on? I am really curious
BEst regards

Stephan Brezinsky

Monday 22 March 2004 1:01:05 pm

I have both complete backups of the files as well as the database. I have not made any actual changes in the admin interface besides just using the 'clear cache' buttons. The error only seems to appear once I am making changes to my siteaccess ini files and templates.

John Mina

Tuesday 23 March 2004 5:16:23 am

Hi
Fraknly I am lost this way, don't know any thing, please let me knwo if u got a solution , or want to discuss it in details, stpe by step
sorry
good luck

Planet Grey

Wednesday 24 March 2004 12:35:40 pm

I am having a similar problem. Figure it has to do with either cache and or changing domains. Did any of you make any site name, (i.e domain), changes ?

Planet Grey

Wednesday 24 March 2004 12:47:03 pm

actually got it working now, and it seems it was down to the cache.

try deleting

../var/YOURSITEDESITE/cache/content/*

but interested to hear how it goes.

Stephan Brezinsky

Wednesday 24 March 2004 7:40:25 pm

i've been using the clearcache.sh script to take care of the cache after i noticed that the admin interface was not clearing it properly, but I will try a manual delete now.

John Mina

Wednesday 24 March 2004 11:46:25 pm

Friends
I instead of deleting cache, or whatever, you can try to add the folowing lines to the setting/sitedesign/site.ini.append file.

[TemplateSettings]
TemplateCache=disabled
Debug=disabled
[ContentSettings]
ViewCaching=disabled
[DebugSettings]
DebugOutput=disabled

this u can change the view caching from enabled to disabled:...etc., so it will eb as if no cach there.
my problem is solved now hoep urs as well

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