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

include_php changed?

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
79TA462
Smarty Rookie


Joined: 12 Nov 2009
Posts: 5

PostPosted: Thu Nov 12, 2009 3:53 pm    Post subject: include_php changed? Reply with quote

Hello

Just switching from 2.6 to 3 and having a problem with include_php function.

In 2.6 I had the following:

{include_php file=$includepg}

Which worked. This variable would contain a dir/file.php. I have security enabled with trusted directories on, however, its as if it is not parsing the variable anymore. It works if I change the $includepg to the actual string value.

Error I get:

Quote:

Fatal error: Uncaught exception 'Exception' with message 'Syntax Error in template "./templates/footernav.tpl" on line 12 "{include_php file='$includepg'}" include_php: file "'$includepg'" is not readable' in /var/www/libs/sysplugins/smarty_internal_templatecompilerbase.php:263 Stack trace: #0 /var/www/libs/sysplugins/smarty_internal_compile_include_php.php(41): Smarty_Internal_TemplateCompilerBase->trigger_template_error('include_php: fi...') #1 [internal function]: Smarty_Internal_Compile_Include_Php->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), NULL, NULL) #2 /var/www/libs/sysplugins/smarty_internal_templatecompilerbase.php(216): call_user_func(Array, Array, Object(Smarty_Internal_SmartyTemplateCompiler), NULL, NULL) #3 /var/www/libs/sysplugins/smarty_internal_templatecompilerbase.php(117): Smarty_Internal_TemplateCompilerBase->generateCode('include_php', Array) #4 /var/www/libs/sysplugins/smarty_internal_templateparser.php(2041): Smarty_Internal_TemplateCompilerBase->compileTag('include_php', Array) in /var/www/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 263
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Thu Nov 12, 2009 5:19 pm    Post subject: Reply with quote

A fix of this problem is in the SVN now.
Back to top
View user's profile Send private message
79TA462
Smarty Rookie


Joined: 12 Nov 2009
Posts: 5

PostPosted: Thu Nov 12, 2009 6:52 pm    Post subject: Reply with quote

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 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