Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I broke my shop :(


Guest

Recommended Posts

hi all, I wish my first post was for something else but its not 2 be.

 

I have been tryin to sort the order of my product options attributes and stumbled across this topic

 

http://www.oscommerce.com/forums/index.php?showtopic=123629

 

Exactly what I was after. Backed up my original file from the site and edited the code. I uploaded it and went to see if it did the job.

so it didnt work, oops thinks me, dont worry i can return the original and it'll be fine, click click click and backup returned. but its STILL throwing the same error up.

What did i do wrong? not even the original code works now.

Link to comment
Share on other sites

hi all, I wish my first post was for something else but its not 2 be.

 

I have been tryin to sort the order of my product options attributes and stumbled across this topic

 

http://www.oscommerce.com/forums/index.php?showtopic=123629

 

Exactly what I was after. Backed up my original file from the site and edited the code. I uploaded it and went to see if it did the job.

so it didnt work, oops thinks me, dont worry i can return the original and it'll be fine, click click click and backup returned. but its STILL throwing the same error up.

What did i do wrong? not even the original code works now.

 

whats the error code or a link to the page thats throwing the error

Regards

 

Mark A Reynolds

Link to comment
Share on other sites

yes it was the first thing i did when i realised the altered code had broken it :(

 

i have a copy of the original product_info.php from the source code and have tried that too now but still gettin the same error.

 

will the hosting company have backed up all the files associated with the site?

could they roll back for me?

does the fact that my containing directory is called 'shop' and not 'catalogue' make a difference?

Link to comment
Share on other sites

Am I right that you only modified the product_info.php file and after this you received the internal 500 error? Did you check the server log to find out more about the error?

Link to comment
Share on other sites

If your provider offers you a panel to control your account, usually you can find a link to error logs in there. Mostly I experienced the 500 error with bad structured htaccess files, but since you only altered the product_info.php file and you uploaded a fresh copy of this file from the same folder structure I am a little dazzled too...

Link to comment
Share on other sites

hmm something strange here.

 

Good news is that the product_info.php is now working again, thank goodness.

 

i deleted the file from the directory using the admin file manager, which left me without the product_info.php page, then uploaded the source code original file again which seems to have worked, but only after waitin for about 5 mins.

 

at least it worked!

 

question though, when i upload files to the server does the file manager completely overwrite the file or just update it?

 

and thanx oschellas for tryin to help

Link to comment
Share on other sites

If the file permission is set to prevent writing to the file nothing happens, if not, it will overwrite the whole file. It is not a good idea to use the filemanager to edit php code (other then the language files) , since it can perform some unwanted changes.

 

Use a FTP client to backup and download files you want to change, edit them on your local machine and transfer them back to the webserver with the FTP client.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...