Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Smarty 3, Error right after installation

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
kenzo2
Smarty n00b


Joined: 25 Jan 2011
Posts: 2

PostPosted: Tue Jan 25, 2011 6:19 am    Post subject: Smarty 3, Error right after installation Reply with quote

I have no problems with Smarty 2, but each Smarty 3 release display error right after installation Sad For example, default demo script http://MY_SITE/Smarty-3.0.6/demo/ display this:
Quote:
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "./templates/index.tpl" on line 9 "Title: {#title#|capitalize}" unknown tag "private_print_expression"' in /ihome/www/MY_SITE/Smarty-3.0.6/libs/sysplugins/smarty_internal_templatecompilerbase.php:425 Stack trace: #0 /ihome/www/MY_SITE/Smarty-3.0.6/libs/sysplugins/smarty_internal_templatecompilerbase.php(248): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "pr...', 9) #1 /ihome/www/MY_SITE/Smarty-3.0.6/libs/sysplugins/smarty_internal_templateparser.php(2312): Smarty_Internal_TemplateCompilerBase->compileTag('private_print_e...', Array, Array) #2 /ihome/www/MY_SITE/Smarty-3.0.6/libs/sysplugins/smarty_internal_templateparser.php(2823): Smarty_Internal_Templateparser->yy_r26() #3 /ihome/www/MY_SITE/Smarty-3.0.6/libs/sysplugins/smarty_internal_templateparser.php(2923): Smarty_Internal_Templateparser->yy_reduce(26) #4 /ihome/www/MY_SITE/Smarty-3.0.6/li in /ihome/www/MY_SITE/Smarty-3.0.6/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 425

Apache 2.0, PHP Version 5.2.14

I'm sure that my server not fully configured for smarty 3, because I've no problems with this smarty3 package on another hosting. But I don't know what is missing.
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Tue Jan 25, 2011 3:57 pm    Post subject: Reply with quote

Looks like that file smarty_internal_compile_private_print_expression.php can't be read from the .../libs/sysplugins folder.

Maybe this folder is incomplete or you have permission problems.
Back to top
View user's profile Send private message
kenzo2
Smarty n00b


Joined: 25 Jan 2011
Posts: 2

PostPosted: Wed Jan 26, 2011 5:01 am    Post subject: Reply with quote

Unbelievable ! I unpacked archive directly on the server, set 777 to templates_c and... it works! Smile Thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup 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