including template and memory issue

Author Message

Jean-Luc Nguyen

Wednesday 02 February 2011 5:05:34 am

Hello there,

I used to have a PHP memory issue (Allowed memory size in a cache file) on an include operator:

{include uri='design:subdirectory/included_template.tpl'}

, and I did not know where the error came from.

Deleting the include solved the problem, more, I changed to (removing the subdirectory):

{include uri='design:included_template.tpl'}

And it solved my PHP memory error. Did someone got this error? Is it a eZ Publish "bug"?

Thanks!

http://www.acidre.com

Gaetano Giunta

Wednesday 02 February 2011 12:50:15 pm

What is the memory limit you have in php.ini? eZP likes it quite high...

ps: sorry, did not look at the sig of the op. Maybe you got a loop in the included tpl code, or an unbounded fetch?

Principal Consultant International Business
Member of the Community Project Board

Jean-Luc Nguyen

Thursday 03 February 2011 1:11:54 am

Hi Gaetano,

I reproduced this "bug" on my local, memory limit is 128MO (high enough), no fetch, no loop, so weird...

I corrected it by removing the subdirectory, so technically corrected, but weird...

Thanks!

http://www.acidre.com

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