Smarty and the {php} tag triggers multiple errors [solved]
Posted: Sun Feb 17, 2008 2:31 am
I've inherited a CMS MS site with a template which includes raw php inside Smarty {php} 'php and mysql stuff' {/php] tags. The page in question works fine at it's current install location. But a fresh install of CMS MS (and appropriate modules) with an imported db at the new location falls over.
Specifically, Smarty seems to be trying to parse every '{' inside the {php} {/php} tags.
EG: {php} if($foo = 'bar') {while etc... {/php} causes a Smarty error "syntax error: unrecognized tag 'while' (Smarty_Compiler.class.php, line 590)".
Has the previous admin done some cunning low-level tweaking, or is this some obscure aspect of server file permissions or wot?
Anyone got any clues?
Additional info: both servers are running PHP 5. CMS MS on previous server 1.0.6. The errors on the new server occur with both 1.0.6 and upgraded 1.2.3. No shell access, so uploads are all done with FTP.
Specifically, Smarty seems to be trying to parse every '{' inside the {php} {/php} tags.
EG: {php} if($foo = 'bar') {while etc... {/php} causes a Smarty error "syntax error: unrecognized tag 'while' (Smarty_Compiler.class.php, line 590)".
Has the previous admin done some cunning low-level tweaking, or is this some obscure aspect of server file permissions or wot?
Anyone got any clues?
Additional info: both servers are running PHP 5. CMS MS on previous server 1.0.6. The errors on the new server occur with both 1.0.6 and upgraded 1.2.3. No shell access, so uploads are all done with FTP.