Guest Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
crash3903 Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
Guest Posted May 3, 2007 Share Posted May 3, 2007 Its a range of pages which show the product information etc.. but this is the page i tried first http://www.poshfires4less.com/shop/product...products_id=277 seems to be throughout the site but thats to be expected because of the page i changed Link to comment Share on other sites More sharing options...
oschellas Posted May 3, 2007 Share Posted May 3, 2007 Did you try to upload an original product_info.php file? Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
oschellas Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
Guest Posted May 3, 2007 Share Posted May 3, 2007 yes :blush: dont know how to access the server logs :blush: Link to comment Share on other sites More sharing options...
oschellas Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
Guest Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
oschellas Posted May 3, 2007 Share Posted May 3, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.