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.