|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
dimiak Smarty n00b
Joined: 02 Jan 2011 Posts: 4
|
Posted: Sun Jun 07, 2015 12:45 am Post subject: Fatal error: Uncaught --> Smarty: Missing template name & |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Jun 09, 2015 5:23 am Post subject: |
|
|
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 |
|
|
|
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
|