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

SmartyCompilerException after moving to new dev environment

 
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 -> General
View previous topic :: View next topic  
Author Message
drumstick
Smarty n00b


Joined: 20 Mar 2014
Posts: 2

PostPosted: Thu Mar 20, 2014 4:59 pm    Post subject: SmartyCompilerException after moving to new dev environment Reply with quote

I moved my projects to a new development server and this is probably a configuration thing I'm not seeing. It's left me puzzled though.

As soon as the compiler encounters some smarty syntax, be it a variable wrapped in smarty delimiters, a variable with a modifier or a function, an exception is thrown.

Code:

PHP Fatal error:  Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/my_site/public_html/templates/home.tpl"  on line 26 "<h1>{$title|escape|ucfirst}</h1>" unknown tag "private_modifier"' in /home/my_site/smarty3/sysplugins/smarty_internal_templatecompilerbase.php:636
Stack trace:
#0 /home/my_site/smarty3/sysplugins/smarty_internal_templatecompilerbase.php(409): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "pr...', 26)
#1 /home/my_site/smarty3/sysplugins/smarty_internal_compile_private_print_expression.php(65): Smarty_Internal_TemplateCompilerBase->compileTag('private_modifie...', Array, Array)
#2 /home/my_site/smarty3/sysplugins/smarty_inte in /home/my_site/smarty3/sysplugins/smarty_internal_templatecompilerbase.php on line 636


The compile and cache dirs are made and have the right permissions. The configured paths are correct.


Thanks,

Drumstick
Back to top
View user's profile Send private message
mohrt
Administrator


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

PostPosted: Thu Mar 20, 2014 5:06 pm    Post subject: Reply with quote

Just to be sure, clear out compile/cache files, make sure ALL smarty library files are in place and with proper read permissions.
Back to top
View user's profile Send private message Visit poster's website
drumstick
Smarty n00b


Joined: 20 Mar 2014
Posts: 2

PostPosted: Fri Mar 21, 2014 9:29 am    Post subject: Reply with quote

testInstall() pointed out the exact issue:

Quote:
Testing sysplugin files...
FAILED: files missing from libs/sysplugins: smarty_internal_compile_private_modifier.php.
Testing plugin files...
FAILED: files missing from libs/plugins: modifiercompiler.cat.php.
Tests complete.


I didn't know about testInstall(), will surely come in handy in the future.

Thanks mohrt and keep up the good work!
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 -> General 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