Forums / Setup & design / Empty page when displaying a form

Empty page when displaying a form

Author Message

Maarten Daniels

Thursday 10 January 2008 5:48:52 am

Hi,

I've created a somewhat complex form (quite a lot of fields) which is displayed using a custom template. The text (labels) that are shown are translated using the i18n function like this:

<tr><td><b>{"Adress"|i18n("design/mycontext")}:</b></td><td>{attribute_view_gui attribute=$node.object.data_map.adres}</td></tr>

This did work pretty well, until I made some changes on the translation.ts file. Now suddenly it takes some time when I try to open the form, before it ends in an empty page (zero sized reply). I've already tried to clear the cache, recompiled it using eztc etc. Can't find any related errors in the var/log/error.log.

Another (much smaller) simple e-mail form, does work, in all languages...

I'm currently using ez 3.8.3.

Any ideas what can be wrong?

Piotrek Karaś

Thursday 10 January 2008 1:35:06 pm

Endless loop? Check the syntax of the template as well as the translation file (although I don't think the latter would get processed if invalid - it's XML). Double the script execution time limit to see if your template hasn't grown too large for server capabilities.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Maarten Daniels

Sunday 13 January 2008 2:18:59 pm

Tried several options. When I take some fields of the form (to make them less than 20) everything works fine. As soon as I add a few lines to that template, it wron again. Seems like a memory problem or so. Scipt memory limit is set to unlimited.

Piotrek Karaś

Sunday 13 January 2008 9:10:47 pm

> <i>When I take some fields of the form (to make them less than 20) everything works fine.</i>

Well, you really need to find a way to confirm one or the other (syntax/memory/execution time). These issues may occur simultaneously, but it's unlikely that they all are source of the problem. With script execution time long (for example 2 minutes) and enough memory (for example 128MB) try to add those fields one by one. One field should make no significant difference, if it does - there's something to look at more closely.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Maarten Daniels

Monday 14 January 2008 1:53:21 am

I tried a few things, but still no succes. Now I noticed, that after I cleared the caches that this error pops up in the error.log:

[ Jan 14 2008 10:49:02 ] [80.60.54.145] eZTemplate:eZTemplateCompiler:
PHP variable $show1['body'] does not exist, cannot fetch the value.

Could this have anything to do with my problem? Probably my cache isn't populated the way it shoud?

Maarten Daniels

Monday 09 March 2009 2:31:31 pm

Hi there,

I'm back, because my problem is back too. After a year of problemless functioning, I needed to change something in my translation.ts file (dut_NL). After that, the problem I mentioned here was back, and I can't seem to get it right.

I believe it's got something to do with the translation cache. This one needs to be generated again, but I get a time-out evertime. My max_execution_time is set to 2400 and my memory-limit is unlimited.

Is there a way that I can generate the translation cache using a script. I noticed there is a script (ezgeneratetranslationcache) in 4.x, but I'm still using 3.8.3. Any help?

eZ debug

Timing: Jan 18 2025 22:21:12
Script start
Timing: Jan 18 2025 22:21:12
Module start 'content'
Timing: Jan 18 2025 22:21:12
Module end 'content'
Timing: Jan 18 2025 22:21:12
Script end

Main resources:

Total runtime0.7978 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.8672180.8281
Module start 'content' 0.00560.7880 769.6953583.6563
Module end 'content' 0.79360.0041 1,353.351650.1016
Script end 0.7977  1,403.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00270.3399140.0002
Check MTime0.00120.1465140.0001
Mysql Total
Database connection0.00050.058810.0005
Mysqli_queries0.746893.6140670.0111
Looping result0.00060.0714650.0000
Template Total0.771096.620.3855
Template load0.00200.255620.0010
Template processing0.768996.381220.3845
Template load and register function0.00010.015010.0001
states
state_id_array0.00080.102510.0008
state_identifier_array0.00090.110820.0004
Override
Cache load0.00170.2145320.0001
Sytem overhead
Fetch class attribute can translate value0.00040.048120.0002
Fetch class attribute name0.00140.174380.0002
XML
Image XML parsing0.00220.272720.0011
class_abstraction
Instantiating content class attribute0.00000.0028120.0000
General
dbfile0.00270.3442250.0001
String conversion0.00000.000930.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs