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.