Jump to content

Error 500 When I Change .tpl Files Via Ftp Client (Winscp)


Recommended Posts

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

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!

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...