Olorin Posted February 10, 2004 Share Posted February 10, 2004 Parse error: parse error, unexpected T_STRING in /home/virtual/site143/fst/var/www/html/catalog/includes/languages/english.php on line 79 THats the error I'm getting. I edited the english.php in there, nowhere near line 79. Nothing was changed. Whats going on though? it's rather urgent, I've got other things I need to work on, but it still needs fixed before I can do alot... Link to comment Share on other sites More sharing options...
SunYe Posted February 10, 2004 Share Posted February 10, 2004 Can you put some content of your englisth.php here ? Tell me something about what you have change... ;) originally line 79: define('BOX_HEADING_WHATS_NEW', 'What\'s New?'); Fan of OSC system................. Comming From China............. Link to comment Share on other sites More sharing options...
241 Posted February 10, 2004 Share Posted February 10, 2004 Post your catalog/includes/languages/english.php it is probably a ( or )or " or ' or ; but need to see the code to be exact 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. Link to comment Share on other sites More sharing options...
Olorin Posted February 10, 2004 Author Share Posted February 10, 2004 // whats_new box text in includes/boxes/whats_new.phpdefine('BOX_HEADING_WHATS_NEW', 'What's New?'); Thats the stuffs there... I changed.. // information box text in includes/boxes/information.phpdefine('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_PRIVACY', 'Privacy Notice'); define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); The bolded, but when this parse error happened, I changed it back to say Information. I did set it to say Shop Info, which apparently didn't work... Link to comment Share on other sites More sharing options...
241 Posted February 10, 2004 Share Posted February 10, 2004 // whats_new box text in includes/boxes/whats_new.php define('BOX_HEADING_WHATS_NEW', 'What's New?'); Thats the stuffs there... I changed.. // information box text in includes/boxes/information.phpdefine('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_PRIVACY', 'Privacy Notice'); define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); The bolded, but when this parse error happened, I changed it back to say Information. I did set it to say Shop Info, which apparently didn't work... you can have define('BOX_HEADING_INFORMATION', 'Shop Info'); and the code looks ok for the section that you have posted. If you still have the error then it is with another part of the code and you would need to post from line #79 to the end 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. Link to comment Share on other sites More sharing options...
Chris Dunning Posted February 10, 2004 Share Posted February 10, 2004 // whats_new box text in includes/boxes/whats_new.phpdefine('BOX_HEADING_WHATS_NEW', 'What's New?'); This needs to be changed to this: // whats_new box text in includes/boxes/whats_new.php define('BOX_HEADING_WHATS_NEW', 'What\'s New?'); You have to put a \ in front of a ' if you want it to appear on screen. PHP recognizes ' as the end of the string. Putting a \ in front of it says that ' is a part of the string, not the end. Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly. Link to comment Share on other sites More sharing options...
Olorin Posted February 11, 2004 Author Share Posted February 11, 2004 Turns out it was this... define('JS_REVIEW_TEXT', '* The 'Review Text' must have at least ' No idea how it got edited but oh well. I fixed it. Thanks for notifying me of the \ rule, greatly appreciate it! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.