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

Problem with plugins: function is not callable
Goto page Previous  1, 2
 
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 -> Smarty 3
View previous topic :: View next topic  
Author Message
bigethan
Smarty Rookie


Joined: 16 Jul 2003
Posts: 6

PostPosted: Fri Jan 08, 2010 9:41 pm    Post subject: insert support? Reply with quote

I'm seeing the same errors, and was wondering if there's been any change to Smarty 3's insert support:

Code:

Fatal error:  Uncaught exception 'Exception' with message 'Syntax Error in template "/path/to/project/templates/WWW/pages/frontdoor/index.tpl"  on line 9 "" function "insert_ad" is not callable' in /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_templatecompilerbase.php:396
Stack trace:
#0 /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_compile_insert.php(53): Smarty_Internal_TemplateCompilerBase->trigger_template_error('function "inser...')
#1 [internal function]: Smarty_Internal_Compile_Insert->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), NULL, NULL, NULL)
#2 /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(256): call_user_func(Array, Array, Object(Smarty_Internal_SmartyTemplateCompiler), NULL, NULL, NULL)
#3 /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(121): Smarty_Internal_TemplateCompilerBase->callT in /path/to/project/lib/vendor/Smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 396
Back to top
View user's profile Send private message
bigethan
Smarty Rookie


Joined: 16 Jul 2003
Posts: 6

PostPosted: Mon Jan 11, 2010 8:03 pm    Post subject: Reply with quote

Is there a rough plan for when smarty will support {insert}?

I've started working on a new project, and need insert support. I'm tinkering with what's in SVN, but am having trouble tracking down the way to make sections of the cached template stay dynamic. And I don't want to go too far down the rabbit hole if the solution is in the works.

Thanks in advance for any feedback.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon Jan 11, 2010 8:08 pm    Post subject: Reply with quote

use {nocache}{/nocache} tags around the dynamic content.
Back to top
View user's profile Send private message Visit poster's website
U.Tews
Administrator


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

PostPosted: Mon Jan 11, 2010 8:26 pm    Post subject: Reply with quote

Smarty3 did not support inserts defined by a insert plugin file.

The fix is in the SVN now.
Back to top
View user's profile Send private message
bigethan
Smarty Rookie


Joined: 16 Jul 2003
Posts: 6

PostPosted: Mon Jan 11, 2010 10:04 pm    Post subject: Reply with quote

thank you so very much.
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 -> Smarty 3 All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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