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

PHP Fatal Error and Smarty Exception

 
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
Nagaraj
Smarty n00b


Joined: 06 Jun 2016
Posts: 1

PostPosted: Mon Jun 06, 2016 8:10 am    Post subject: PHP Fatal Error and Smarty Exception Reply with quote

We have a website running on Windows 7/IIS 7 using PHP 5.4 and Smarty templates. We are getting one strange exception in php crashed error log:PHP Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "templates\base\rp_debug.tpl" on line 37 "_smarty_console.document.write("<

The actual code is like this:

_smarty_console.document.write("<
My question why " and < symbols are translated to &quot;&lt;? Are there any settings in IIS that is blocking to not to prit HTML entities?

Please Note: This error came after smarty upgrade from 2 to 3.

Any suggestions?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Jun 06, 2016 11:15 am    Post subject: Reply with quote

Purge compiler and render caches, and upgrade your PHP to 5.6 at least.
What error message is printing isn't necessarily what is going to be rendered, if not for the exception thrown.
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