monteoutlaw Posted June 8, 2005 Posted June 8, 2005 I get this error message whenever I try to save, Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /export/home/jupiterinc.net/public_html/catalog/includes/languages/english/index.php on line 33 <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN',''); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let’s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 ''); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What's New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } Line 33 is the text_all_categories line however I did erase what was previously on that line text_now which would not let me save. At this point ive tried everything but still gives me these errors any advice would be appreciated!
Winterchild Posted June 8, 2005 Posted June 8, 2005 I saw 2 problems 1. define('TEXT_BUY', 'Buy 1 ''); a quote too many 2. define('HEADING_TITLE', 'What's New Here?'); quotes in text need to be escaped by a \ like this: define('HEADING_TITLE', 'What\'s New Here?'); Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
monteoutlaw Posted June 8, 2005 Author Posted June 8, 2005 I saw 2 problems 1. define('TEXT_BUY', 'Buy 1 ''); a quote too many 2. define('HEADING_TITLE', 'What's New Here?'); quotes in text need to be escaped by a \ like this: define('HEADING_TITLE', 'What\'s New Here?'); <{POST_SNAPBACK}> Thank you, I did take one of the quotes off of the last script 'Now'' which I erased, do you have to use the switch with double qoutations? or do I just erase?
Guest Posted June 8, 2005 Posted June 8, 2005 whenever you have an apostrophe in the text, you need to precede it with a \
Recommended Posts
Archived
This topic is now archived and is closed to further replies.