twinthings
Trekkie

Offline
Posts: 18
|
 |
« on: July 24, 2008, 08:13:34 PM » |
|
Hi I am wondering if someone can tell me. I have an oscommerce site, and I have been advised to reload a new categories.php to my store as the preview page in my catalogue is messed up and i cannot edit new or pre existing products. I have never done a backup through my cpanel so I am wondering if this is what I was suppose to do for them to advise me to reload a new categories php.
Fiona
|
|
|
|
|
Logged
|
|
|
|
|
MichaelT
|
 |
« Reply #1 on: July 25, 2008, 04:49:40 AM » |
|
Hi Fiona,
Yes, you can use the File Manager in cPanel to "reload" a php page (upload a new copy from your local computer). When you do it should overwrite the original page.
|
|
|
|
|
Logged
|
|
|
|
twinthings
Trekkie

Offline
Posts: 18
|
 |
« Reply #2 on: July 26, 2008, 05:01:55 PM » |
|
When you say upload it from your computer, do you mean from my FTP. If so I have tried this and choose to 'overwrite' but still the same.
fiona
|
|
|
|
|
Logged
|
|
|
|
twinthings
Trekkie

Offline
Posts: 18
|
 |
« Reply #3 on: July 26, 2008, 05:18:48 PM » |
|
I have also tried to upload it throught c panel, It still hasn't worked(that is if I have done it right).
|
|
|
|
|
Logged
|
|
|
|
|
MrPhil
|
 |
« Reply #4 on: July 26, 2008, 07:54:40 PM » |
|
Your file permission should be 644 (or maybe 755). If it's 444, it will fail to overwrite. You can view (and if necessary, change), the permission in cPanel > File Manager (the same place you tried uploading). Some FTP clients may be able to do that, too.
|
|
|
|
|
Logged
|
|
|
|
twinthings
Trekkie

Offline
Posts: 18
|
 |
« Reply #5 on: July 26, 2008, 08:18:06 PM » |
|
Hi what I could see my permission was 644, changed to 755 and tried to upload but still have my messed up categories.php in my oscommerce site.
fiona
|
|
|
|
|
Logged
|
|
|
|
|
MrPhil
|
 |
« Reply #6 on: July 26, 2008, 08:46:38 PM » |
|
If categories.php on your server is either 644 or 755, you should be able to overwrite it. Are you sure you're uploading your new copy to the right place? If using cPanel > File Manager, be sure to click on the folder icon to the left of the name to navigate to that directory (and not on the directory name itself).
You're sure that you have a clean copy of the file that you're trying to upload, and not an old corrupted copy?
|
|
|
|
|
Logged
|
|
|
|
twinthings
Trekkie

Offline
Posts: 18
|
 |
« Reply #7 on: July 26, 2008, 08:52:09 PM » |
|
That is a good point about the file may be an old corrupted file. How do I know and how do I find a file that isn't corrupted. Sorry I am a newbie and trying to manage my oscommerce site with helps from forums. Forgive me if this is a green question, I have never backed up though by c panel, fiona
|
|
|
|
|
Logged
|
|
|
|
|
Matthew Alan
|
 |
« Reply #8 on: August 01, 2008, 06:31:38 AM » |
|
Anytime I update a PHP file, I renamed the current to php-file-1.html(yes .html to cease any php processes), and upload the new php-file.php.
Try that. Also, if the new one works you can(don't know if its recommended, I always do) delete php-file-1.html.
|
|
|
|
|
Logged
|
|
|
|
|