detriMENtal Posted April 13, 2004 Posted April 13, 2004 I have been modifying files using the file manager in the admin section of oscommerce, and everytime i save the file, even if i dont make any additions or modifications, it seems to stuff everything up. I discovered with some pages that i had to go through and escape out quotes (") and fix other errors everytime i wanted to make an addition or modification to that file. I cant work out whatys going on, but i cant afford to have to spend hours scaning every file for errors everytime i want to make a 10 second adjusment to it. Anwyway, my main problem at the moment is.. i edited the catalog/includes/languages/english.php file, and i changed one word in the TITLE variable, and now it whinges that theres a parse error, and all the links on my store now display the variables, like BOX_INFORMATION_SHIPPING rather then the actual string value 'Shipping'. Someone point me in the right direction here.. or has someone been tampering with the system? (there was someones before me who managed the site for a little bit, but i have found this with just about every page i edit so far. I will provide links im pm only.. thanks in advance
ozcsys Posted April 13, 2004 Posted April 13, 2004 If there is one thing I have learned by reading the boards over the last few months. DO NOT USE THE ONLINE FILE MANAGER! It does not work and will mess up your files. To be honest since that is the case I do not know why it it there as newbies see it and use it and have troubles everytime. Change your files locally using an editor and ftp back up to your site. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
241 Posted April 13, 2004 Posted April 13, 2004 there is a known issue with the online file manager stripping \ backslashes from the code which causes a parse error it is better to use an ftp program such as ws_ftp to download the file to be edited then ftp back to the server thus helping to elliminate parse errors. The reason for all the BOX_ text showing is the parse error breaking the code affecting all the lines thereafter. Change line 79 approx. define('BOX_HEADING_WHATS_NEW', 'What's New?'); to define('BOX_HEADING_WHATS_NEW', 'What\'s New?'); and around line 143 // javascript messages define('JS_ERROR', 'Errors have occured during the process of your form.\n\nPlease make the following corrections:\n\n'); define('JS_REVIEW_TEXT', '* The \'Review Text\' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.\n'); define('JS_REVIEW_RATING', '* You must rate the product for your review.\n'); define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Please select a payment method for your order.\n'); No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.