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?

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 19 2025 01:02:55
Script start
Timing: Jan 19 2025 01:02:55
Module start 'layout'
Timing: Jan 19 2025 01:02:55
Module start 'content'
Timing: Jan 19 2025 01:02:57
Module end 'content'
Timing: Jan 19 2025 01:02:57
Script end

Main resources:

Total runtime1.2642 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 591.4844152.6250
Module start 'layout' 0.00540.0043 744.109439.4453
Module start 'content' 0.00971.2530 783.5547578.5781
Module end 'content' 1.26260.0015 1,362.132816.1563
Script end 1.2642  1,378.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2631160.0002
Check MTime0.00130.1035160.0001
Mysql Total
Database connection0.00060.047310.0006
Mysqli_queries1.193594.4059660.0181
Looping result0.00540.4245640.0001
Template Total1.224496.920.6122
Template load0.00230.181920.0011
Template processing1.222196.670420.6111
Template load and register function0.00010.010810.0001
states
state_id_array0.00100.081510.0010
state_identifier_array0.00170.132320.0008
Override
Cache load0.00200.1542320.0001
Sytem overhead
Fetch class attribute can translate value0.00060.050920.0003
Fetch class attribute name0.00160.124080.0002
XML
Image XML parsing0.00230.184620.0012
class_abstraction
Instantiating content class attribute0.00000.0023120.0000
General
dbfile0.00250.1995230.0001
String conversion0.00000.000840.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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