Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Fatal error: Uncaught --> Smarty: Missing template name &

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
dimiak
Smarty n00b


Joined: 02 Jan 2011
Posts: 4

PostPosted: Sun Jun 07, 2015 12:45 am    Post subject: Fatal error: Uncaught --> Smarty: Missing template name & Reply with quote

Hi

Since smarty 3.1.23 I have a problem when I'm using caching and include tags.

For example code:
Code:

{if $include_center_up and $include_center_up ne "no"}
{include file=$include_center_up}
{/if}

First it will load properly but when I click reload page I can see error:
Quote:

Fatal error: Uncaught --> Smarty: Missing template name <-- thrown in C:\Server\home\test.com\htdocs\smarty\sysplugins\smarty_template_source.php on line 177

With smarty version 3.1.21 everything ok. Something change in smarty since 3.1.23?

Thanks in Advance
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Tue Jun 09, 2015 5:23 am    Post subject: Reply with quote

By mistake {include} with a variable file name creates a separate cache file.
I think you don't assign the $include_center_up variable if the cache is valid.

The work around is to assign $include_center_up always.

This fix is already in the dev-master version.

You can get the ZIP file here https://github.com/smarty-php/smarty/archive/master.zip

If you are using composer install the dev-master version.


we will soon release 3.1.25
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP