Guest Posted August 11, 2006 Share Posted August 11, 2006 Hi there Please help me with the following parse error. I'm not sure what I am looking for: Parse error: parse error, unexpected T_STRING in /public_html/osCommerce/catalog/includes/languages/english.php on line 146 File: Catalog/includes/languages/english.php This is line 146: define('JS_REVIEW_TEXT', '* The 'Review Text' must have at least' . REVIEW_TEXT_MIN_LENGTH . ' characters.n'); The lines before and after. // javascript messages define('JS_ERROR', 'Errors have occured during the process of your form.nnPlease make the following corrections:nn'); 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'); define('JS_ERROR_SUBMITTED', 'This form has already been submitted. Please press Ok and wait for this process to be completed.'); Link to comment Share on other sites More sharing options...
Gil_e_n Posted August 11, 2006 Share Posted August 11, 2006 Change to define('JS_REVIEW_TEXT', '* The \'Review Text\' must have at least' . REVIEW_TEXT_MIN_LENGTH . ' characters.'); Also, delete the n's at the end of your lines. Are you using File Manager in the admin to edit them? Always BACK UP your files and your database before making any changes. Before asking questions, check out the Knowledge Base. Check out the contributions to see if your problem's solved there. Search the forums. Useful threads: Store Speed Optimization How to make a horrible shop Basics for design change How to search the forums Useful contributions: Easypopulate Fast, Easy Checkout Header Tag Controller Link to comment Share on other sites More sharing options...
Mieke Posted August 11, 2006 Share Posted August 11, 2006 I was having the same problems with the parse errors in the exact same place. See the "willing to hire" post and replys for the answer to this! Link to comment Share on other sites More sharing options...
Guest Posted August 11, 2006 Share Posted August 11, 2006 Thanks Gillian That worked. I'm a bit of a dummy when it comes to this kind of thing. I was using the file manager which comes standard with all my website files, etc. I am now using the osC file manager which is giving me a lot less hassles. Quite honestly, I'm not actually sure which is the "Admin" file manager, but I've managed to do a lot more in 1 day than what I was previously able to do in 2 weeks so I assume I am now doing the right thing. Mieke, thanks for your advice .... I'll take a look because I just know I'm going to have a lot more problems. osCommerce is great but unfortunately they don't give you brains with the package. Thanks again guys Link to comment Share on other sites More sharing options...
Gil_e_n Posted August 11, 2006 Share Posted August 11, 2006 The osc file manager is convenient, I'll grant you that. But it also adds spare n's to the end of all your files. What you really need to do is download a good FTP program (I use and recommend Filezilla) and a good php editor (I use Notepad++, although people can pretty much argue about what php editor to use all day.) Don't use the default osc editor, it will cause errors. Always BACK UP your files and your database before making any changes. Before asking questions, check out the Knowledge Base. Check out the contributions to see if your problem's solved there. Search the forums. Useful threads: Store Speed Optimization How to make a horrible shop Basics for design change How to search the forums Useful contributions: Easypopulate Fast, Easy Checkout Header Tag Controller Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.