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.

eZ debug

Timing: Jan 18 2025 02:02:00
Script start
Timing: Jan 18 2025 02:02:00
Module start 'layout'
Timing: Jan 18 2025 02:02:00
Module start 'content'
Timing: Jan 18 2025 02:02:01
Module end 'content'
Timing: Jan 18 2025 02:02:01
Script end

Main resources:

Total runtime0.8906 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9375152.6250
Module start 'layout' 0.00630.0026 740.562539.4531
Module start 'content' 0.00890.8803 780.0156538.2734
Module end 'content' 0.88920.0014 1,318.289112.1563
Script end 0.8906  1,330.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3598160.0002
Check MTime0.00130.1470160.0001
Mysql Total
Database connection0.00080.090410.0008
Mysqli_queries0.840294.3347570.0147
Looping result0.00050.0603550.0000
Template Total0.860396.620.4302
Template load0.00150.166720.0007
Template processing0.858896.426620.4294
Template load and register function0.00030.038310.0003
states
state_id_array0.00080.084910.0008
state_identifier_array0.00140.158120.0007
Override
Cache load0.00120.1363220.0001
Sytem overhead
Fetch class attribute can translate value0.00080.089120.0004
Fetch class attribute name0.00170.187850.0003
XML
Image XML parsing0.00130.148420.0007
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00150.1711220.0001
String conversion0.00000.001640.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs