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.

eZ debug

Timing: Jan 18 2025 19:37:13
Script start
Timing: Jan 18 2025 19:37:13
Module start 'layout'
Timing: Jan 18 2025 19:37:13
Module start 'content'
Timing: Jan 18 2025 19:37:13
Module end 'content'
Timing: Jan 18 2025 19:37:13
Script end

Main resources:

Total runtime0.7279 sec
Peak memory usage4,096.0000 KB
Database Queries132

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.1641152.6406
Module start 'layout' 0.00500.0020 741.804739.4766
Module start 'content' 0.00700.7193 781.2813824.0938
Module end 'content' 0.72630.0015 1,605.375032.1250
Script end 0.7278  1,637.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4729160.0002
Check MTime0.00160.2230160.0001
Mysql Total
Database connection0.00090.119010.0009
Mysqli_queries0.633787.05531320.0048
Looping result0.00130.18011300.0000
Template Total0.703896.720.3519
Template load0.00200.274120.0010
Template processing0.701896.417920.3509
Template load and register function0.00030.037510.0003
states
state_id_array0.00070.099510.0007
state_identifier_array0.00110.149920.0005
Override
Cache load0.00200.2699970.0000
Sytem overhead
Fetch class attribute can translate value0.00060.077850.0001
Fetch class attribute name0.00150.2100210.0001
XML
Image XML parsing0.00100.135250.0002
class_abstraction
Instantiating content class attribute0.00000.0049210.0000
General
dbfile0.00110.1498160.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
20content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
26content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 62
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs