Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Nocache tags printing code

 
Post new topic   Reply to topic    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
jaykirby
Smarty n00b


Joined: 24 Jul 2018
Posts: 2

PostPosted: Tue Jul 24, 2018 4:57 am    Post subject: Nocache tags printing code Reply with quote

We are moving our site to a new server with a newer version of smarty 3.1.32 and am getting code inserted in the page anywhere I use {nocache} tags.

So a template like this:
Code:
<p>{nocache}{$smarty.now|date_format:'%B %e, %Y'}{/nocache}</p>

renders this:
Code:
/*%%SmartyNocache:13980429775b56ae4aaf42b9_35789719%%*/<?php $_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/usr/local/lib/php/smarty-3.1.32/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>/*/%%SmartyNocache:13980429775b56ae4aaf42b9_35789719%%*/<p>/*%%SmartyNocache:13980429775b56ae4aaf42b9_35789719%%*/<?php echo smarty_modifier_date_format(time(),'%B %e, %Y');?>
/*/%%SmartyNocache:13980429775b56ae4aaf42b9_35789719%%*/</p>

All the other templates seem to work fine. Any suggestions?
Back to top
View user's profile Send private message
jaykirby
Smarty n00b


Joined: 24 Jul 2018
Posts: 2

PostPosted: Tue Jul 24, 2018 5:22 am    Post subject: Nocache tags printing code Reply with quote

Consider this resolved: The code in the page disappeared when I resolved some other errors within the page that was likely preventing some kind of flush from happening.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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