Guest Posted June 7, 2005 Share Posted June 7, 2005 In my attempt the change the "Welcome Guest..." line I messed up my site. The line I edited was down at the bottom of a decent sized file. Before I edited anything I copied the original to wordpad to have it just in case. Upon uploading I get the error in cat/incl/languages/english.php line 79 So I put the original back. Same error message. Below is the first 100 or so line of the file. At my count line 79 is the space below Define FEMALE ADDRESS... line. I checked for spaces but couldn't find any: <?php /* $Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // look in your $PATH_LOCALE/locale directory for available locales // or type locale -a on the server. // Examples: // on RedHat try 'en_US' // on FreeBSD try 'en_US.ISO_8859-1' // on Windows try 'en', or 'English' @setlocale(LC_TIME, 'en_US.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'm/d/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'USD'); // Global entries for the <html> tag define('HTML_PARAMS','dir="LTR" lang="en"'); // charset for web pages and emails define('CHARSET', 'iso-8859-1'); // page title define('TITLE', 'YIKES! Toys and Comics!'); // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Catalog'); define('HEADER_TITLE_LOGOFF', 'Log Off'); define('HEADER_TITLE_LOGIN', 'Log In'); // footer text in includes/footer.php define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since'); // text for gender define('MALE', 'Male'); define('FEMALE', 'Female'); define('MALE_ADDRESS', 'Mr.'); define('FEMALE_ADDRESS', 'Ms.'); // text for date of birth example define('DOB_FORMAT_STRING', 'mm/dd/yyyy'); // categories box text in includes/boxes/categories.php define('BOX_HEADING_CATEGORIES', 'Categories'); // manufacturers box text in includes/boxes/manufacturers.php define('BOX_HEADING_MANUFACTURERS', 'Manufacturers'); // whats_new box text in includes/boxes/whats_new.php define('BOX_HEADING_WHATS_NEW', 'What's New?'); please help! dave Link to comment Share on other sites More sharing options...
conrad10781 Posted June 7, 2005 Share Posted June 7, 2005 whats the error? Link to comment Share on other sites More sharing options...
Guest Posted June 7, 2005 Share Posted June 7, 2005 Sorry... Parse error. here's the exact: Parse error: parse error, unexpected T_STRING in /home/yikescom/public_html/catalog/includes/languages/english.php on line 79 Link to comment Share on other sites More sharing options...
Guest Posted June 7, 2005 Share Posted June 7, 2005 this: // whats_new box text in includes/boxes/whats_new.php define('BOX_HEADING_WHATS_NEW', 'What's New?'); should be: // whats_new box text in includes/boxes/whats_new.php define('BOX_HEADING_WHATS_NEW', 'What\'s New?'); Link to comment Share on other sites More sharing options...
Guest Posted June 7, 2005 Share Posted June 7, 2005 Thanks Mibble. The Error is fixed on that line and has now moved to line 146 Parse error: parse error, unexpected T_STRING in /home/yikescom/public_html/catalog/includes/languages/english.php on line 146 The code including the line (which I think is the checkout procedure text): <?php /* $Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // look in your $PATH_LOCALE/locale directory for available locales // or type locale -a on the server. // Examples: // on RedHat try 'en_US' // on FreeBSD try 'en_US.ISO_8859-1' // on Windows try 'en', or 'English' @setlocale(LC_TIME, 'en_US.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'm/d/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'USD'); // Global entries for the <html> tag define('HTML_PARAMS','dir="LTR" lang="en"'); // charset for web pages and emails define('CHARSET', 'iso-8859-1'); // page title define('TITLE', 'YIKES! Toys and Comics!'); // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Catalog'); define('HEADER_TITLE_LOGOFF', 'Log Off'); define('HEADER_TITLE_LOGIN', 'Log In'); // footer text in includes/footer.php define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since'); // text for gender define('MALE', 'Male'); define('FEMALE', 'Female'); define('MALE_ADDRESS', 'Mr.'); define('FEMALE_ADDRESS', 'Ms.'); // text for date of birth example define('DOB_FORMAT_STRING', 'mm/dd/yyyy'); // categories box text in includes/boxes/categories.php define('BOX_HEADING_CATEGORIES', 'Categories'); // manufacturers box text in includes/boxes/manufacturers.php define('BOX_HEADING_MANUFACTURERS', 'Manufacturers'); // whats_new box text in includes/boxes/whats_new.php define('BOX_HEADING_WHATS_NEW', 'What\'s New?'); // quick_find box text in includes/boxes/quick_find.php define('BOX_HEADING_SEARCH', 'Quick Find'); define('BOX_SEARCH_TEXT', 'Use keywords to find the product you are looking for.'); define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search'); // specials box text in includes/boxes/specials.php define('BOX_HEADING_SPECIALS', 'Specials'); // reviews box text in includes/boxes/reviews.php define('BOX_HEADING_REVIEWS', 'Reviews'); define('BOX_REVIEWS_WRITE_REVIEW', 'Write a review on this product!'); define('BOX_REVIEWS_NO_REVIEWS', 'There are currently no product reviews'); define('BOX_REVIEWS_TEXT_OF_5_STARS', '%s of 5 Stars!'); // shopping_cart box text in includes/boxes/shopping_cart.php define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart'); define('BOX_SHOPPING_CART_EMPTY', '0 items'); // order_history box text in includes/boxes/order_history.php define('BOX_HEADING_CUSTOMER_ORDERS', 'Order History'); // best_sellers box text in includes/boxes/best_sellers.php define('BOX_HEADING_BESTSELLERS', 'Bestsellers'); define('BOX_HEADING_BESTSELLERS_IN', 'Bestsellers in<br> '); // notifications box text in includes/boxes/products_notifications.php define('BOX_HEADING_NOTIFICATIONS', 'Notifications'); define('BOX_NOTIFICATIONS_NOTIFY', 'Notify me of updates to <b>%s</b>'); define('BOX_NOTIFICATIONS_NOTIFY_REMOVE', 'Do not notify me of updates to <b>%s</b>'); // manufacturer box text define('BOX_HEADING_MANUFACTURER_INFO', 'Manufacturer Info'); define('BOX_MANUFACTURER_INFO_HOMEPAGE', '%s Homepage'); define('BOX_MANUFACTURER_INFO_OTHER_PRODUCTS', 'Other products'); // languages box text in includes/boxes/languages.php define('BOX_HEADING_LANGUAGES', 'Languages'); // currencies box text in includes/boxes/currencies.php define('BOX_HEADING_CURRENCIES', 'Currencies'); // information box text in includes/boxes/information.php define('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'); // tell a friend box text in includes/boxes/tell_a_friend.php define('BOX_HEADING_TELL_A_FRIEND', 'Tell A Friend'); define('BOX_TELL_A_FRIEND_TEXT', 'Tell someone you know about this product.'); // checkout procedure text define('CHECKOUT_BAR_DELIVERY', 'Delivery Information'); define('CHECKOUT_BAR_PAYMENT', 'Payment Information'); define('CHECKOUT_BAR_CONFIRMATION', 'Confirmation'); define('CHECKOUT_BAR_FINISHED', 'Finished!'); // pull down default text define('PULL_DOWN_DEFAULT', 'Please Select'); define('TYPE_BELOW', 'Type Below'); // 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.'); define('ERROR_NO_PAYMENT_MODULE_SELECTED', 'Please select a payment method for your order.'); define('CATEGORY_COMPANY', 'Company Details'); define('CATEGORY_PERSONAL', 'Your Personal Details'); define('CATEGORY_ADDRESS', 'Your Address'); define('CATEGORY_CONTACT', 'Your Contact Information'); define('CATEGORY_OPTIONS', 'Options'); define('CATEGORY_PASSWORD', 'Your Password'); Link to comment Share on other sites More sharing options...
♥Vger Posted June 7, 2005 Share Posted June 7, 2005 Do yourself a favour - download a free plain text editor like Text Pad or Crimson Editor. Either will give you the line numbers, so you will know exactly where the error is You're going to need a good editor if you are working with osCommerce, and Wordpad is not a plain text editor, like Word it applies text formatting - not good for osCommerce. Vger Link to comment Share on other sites More sharing options...
Guest Posted June 7, 2005 Share Posted June 7, 2005 Thanks. Now I know what line it is but don't know the error. It's Parse Unexpected T-String. It looks to have a stray apostrophe but since I don't enough about php, Here's the line: define('JS_REVIEW_TEXT', '* The 'Review Text' must have at least ' . REVIEW_TEXT_MIN_LENGTH . 'characters.n'); thanks for any help! dave Link to comment Share on other sites More sharing options...
Wendy James Posted June 7, 2005 Share Posted June 7, 2005 'Review Text' you cant use ' it throws off the code. Try using " instead. and the n should not be there. I think. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted June 7, 2005 Share Posted June 7, 2005 thanks all, it's fixed. I used the original copy of the file, looked at it in Crimson Editor and made the neccessary corrections! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.