Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 334
  • Last Modified:

Uploading a file via ftp breaks script

I have been trying to make some changes to a tpl file for a shopping cart script (Prestashop), each time I made a change to a header.tpl file and uploaded the file back to the server, it would break the script and instead of getting a webpage in my browser, it displayed a blank page with no code in the source for the webpage. In order to fix the site/script I had to re-upload all files related to the script to the server. At first I had thought it was my code breaking the site or possibly notepad ++ or the encoding it was saving the file in, but I did an experiment, if I  don't make any changes to the .tpl file and just upload the original .tpl file and overwrite the one on the server, it breaks the entire script. What in the world is going on here? Here are some details that may be helpful:

Script Info:
Script: Prestashop
.tpl File: header.tpl

FTP Info:
FTP Client: Filezilla
Version: 3.3.5.1
Default Transfer Type: Auto

Server: Linux/CentOS

Any help to resolve this issue would be appreciated.

0
battleweb
Asked:
battleweb
  • 2
1 Solution
 
battlewebAuthor Commented:
I was able to resolve this, it's pretty strange but the smarty/compile/ directory needs the right permissions to compile the new changes.
0
 
battlewebAuthor Commented:
Resolved
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now