TemplateCompile bug

Author Message

Marko Žmak

Saturday 06 November 2004 9:02:13 am

I experienced problems with template compiling. When I put on TemplateCompile (TemplateCompile=enabled), all new templates I create cannot be loaded. In the debug info I get the message:

No template could be loaded for "menuright_info.tpl" using resource "design"

Could this be fixed, since without the template compiling my site is running really slow...

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Lazaro Ferreira

Saturday 06 November 2004 9:08:30 am

Hi

Are you creating your templates from EZP admin or using a personal FTP account ?

the second could create files without write permissions for ezp template compiler , to be on the safe side just

chmod -R 777 design

 

from ezp root dir

Lazaro
http://www.mzbusiness.com

Marko Žmak

Saturday 06 November 2004 10:45:23 am

I've already set the 777 premissions for the design directory and cleared all the caches. I even tried deleting the cache directory, but the error remains the same.

Trust me I tried every tip I found in the docs, and everything I could think of. It just won't work. Please help.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

Sunday 07 November 2004 3:07:09 pm

I found out more details about the error. The code that doesn't work is this:

{include uri=concat('design:',$template)}

And why? I guess because the concat operator doesn't work well with TeplateCompile directive.

I tried:

{include uri=concat('design:menuright_info.tpl')}

and everything worked OK. But when I tried:

{include uri=concat('design:','menuright_info.tpl')}

the template could not be loaded. So I guess the problem is in the concat function, but I would like an opinion from some of the EZ crew.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Balazs Halasy

Sunday 07 November 2004 3:15:50 pm

Hey,

Please file this as a bug report (http://www.ez.no/community/bug_reports) - describe exactly what we should do to reproduce the problem (basically the same stuff you have in your previous posts). Thanks.

Balazs

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:15:34
Script start
Timing: Jan 19 2025 01:15:34
Module start 'layout'
Timing: Jan 19 2025 01:15:34
Module start 'content'
Timing: Jan 19 2025 01:15:35
Module end 'content'
Timing: Jan 19 2025 01:15:35
Script end

Main resources:

Total runtime0.6754 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 590.1484152.6094
Module start 'layout' 0.00660.0031 742.757839.4297
Module start 'content' 0.00970.6644 782.1875601.9219
Module end 'content' 0.67410.0012 1,384.109412.1875
Script end 0.6753  1,396.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4852160.0002
Check MTime0.00140.2119160.0001
Mysql Total
Database connection0.00130.185410.0013
Mysqli_queries0.618491.5622650.0095
Looping result0.00060.0832630.0000
Template Total0.638194.520.3190
Template load0.00240.350620.0012
Template processing0.635794.130320.3179
Template load and register function0.00010.014510.0001
states
state_id_array0.00100.142010.0010
state_identifier_array0.00080.125320.0004
Override
Cache load0.00200.2895330.0001
Sytem overhead
Fetch class attribute can translate value0.00080.120030.0003
Fetch class attribute name0.00090.131970.0001
XML
Image XML parsing0.00100.155330.0003
class_abstraction
Instantiating content class attribute0.00000.002490.0000
General
dbfile0.00100.1529240.0000
String conversion0.00000.001240.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs