Mixa_RU Posted December 2, 2015 Share Posted December 2, 2015 Hello everyone! I have a very strange issue: when I am changing .tpl files with WinSCP built-in text editor via FTP connection on live shop after saving changes I immediately got 500 server error on frontend. It happens on any .tpl file with any even small file changing, like insert couple of HTML tags in file... I suspected FTP client encoding first but it is not the problem as I can see. After I was thinking about smarty compiling templates and cache, but this is also not a problem I think. May be someone have any idea why do I have such a strange behaviour? Thank you! Prestashop 1.6.1.3 on good shared hosting, Chrome browser under Win7, default bootstrap theme . Link to comment Share on other sites More sharing options...
Knowband Plugins Posted December 3, 2015 Share Posted December 3, 2015 Generally this happens when you inserts script outside literal tag. To identify your issue, turn on error reporting by following below steps: Edit following file. /config/define_inc.php Replace define('_PS_MODE_DEV_', false);withdefine('_PS_MODE_DEV_', true); 1 Link to comment Share on other sites More sharing options...
Mixa_RU Posted December 3, 2015 Author Share Posted December 3, 2015 Hello Knowband Plugins! Thanks for advice! I got the errror : Fatal error: Uncaught --> Smarty Compiler: Syntax error in template {" - Unexpected "[", expected one of: "}" <-- thrown in And you are right - I need to place my code between {literal}{/literal} smarty tags. Problem solved, many thanks! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now