Solved

Uploading a file  via ftp breaks script

Posted on 2011-03-17
2
328 Views
Last Modified: 2012-05-11
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
Comment
Question by:battleweb
  • 2
2 Comments
 

Accepted Solution

by:
battleweb earned 0 total points
ID: 35160945
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
 

Author Closing Comment

by:battleweb
ID: 35160948
Resolved
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question