Diajejo Posted July 17, 2005 Share Posted July 17, 2005 Hi, Im getting this error. Parse error: parse error, unexpected T_STRING in /home/diajejo/public_html/oscommerce/includes/languages/english/index.php on line 18 I cant see where the problem is. This is the area with the problem I think. From which point does one count lines?? */ define('TEXT_MAIN', 'Welcome to California Wine Sellers online store! We are located in Jackson California, in the beautiful Amador County. We have the largest collection of Sierra Foothill wines anywhere. Our specialty small lot artisan wines. We also offer a Do it yourself wine club, as well as lots of gift items that are wine related. Go ahead and browse. We know you will find something to your likeing.<p>This shop is running on osCommerce version <font color="#f0000"><b>osCommerce 2.2-MS2 '); 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_MANUFACTURERS', 'Winery'); Thanks for all your input! Diana Link to comment Share on other sites More sharing options...
Guest Posted July 17, 2005 Share Posted July 17, 2005 Use a more advanced program than notepad to edit your files and you will have the option (or default) of viewing line numbers. I like Notepad++ It's free and easy to use. Dreamweaver can show line numbers, too. I'm guessing your error is here: define('HEADING_TITLE', 'Let's See What We Have Here'); Single quotes and apostrophes need to be escaped like this: Let\'s Otherwise the php reads all wrong. Link to comment Share on other sites More sharing options...
Diajejo Posted July 18, 2005 Author Share Posted July 18, 2005 Thanks, that fixed that error. Now I have one on line 32 which is this. Do you see what the problem is? define('TEXT_NOW', 'Now'); Thanks again:) Hi, Im getting this error. Parse error: parse error, unexpected T_STRING in /home/diajejo/public_html/oscommerce/includes/languages/english/index.php on line 18 I cant see where the problem is. This is the area with the problem I think. From which point does one count lines?? */ define('TEXT_MAIN', 'Welcome to California Wine Sellers online store! We are located in Jackson California, in the beautiful Amador County. We have the largest collection of Sierra Foothill wines anywhere. Our specialty small lot artisan wines. We also offer a Do it yourself wine club, as well as lots of gift items that are wine related. Go ahead and browse. We know you will find something to your likeing.<p>This shop is running on osCommerce version <font color="#f0000"><b>osCommerce 2.2-MS2 '); 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_MANUFACTURERS', 'Winery'); Thanks for all your input! Diana <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
♥Vger Posted July 18, 2005 Share Posted July 18, 2005 That line actually says ''Now', and should (because of the unescaped apostrophy used) read: '\'Now' Do as Mibble advised and get yourself a text editor which shows line numbers and you'll be able to see the mistakes for yourself. Also, stop using the osCommerce File Manager to edit files - it's this that is removing the backslashes and causing the errors. To edit osCommerce files properly follow the "Psst?? Got a parse error??" link below my name. Vger Link to comment Share on other sites More sharing options...
Diajejo Posted July 18, 2005 Author Share Posted July 18, 2005 I did d-load the notepad ++ and it works great. And thanks for the tip on how to edit properly. I didnt realize that doing it from the file it could cause errors. Thanks a bunch! That line actually says ''Now', and should (because of the unescaped apostrophy used) read:'\'Now' Do as Mibble advised and get yourself a text editor which shows line numbers and you'll be able to see the mistakes for yourself. Also, stop using the osCommerce File Manager to edit files - it's this that is removing the backslashes and causing the errors. To edit osCommerce files properly follow the "Psst?? Got a parse error??" link below my name. Vger <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Diajejo Posted July 19, 2005 Author Share Posted July 19, 2005 Hi, I did edit it with Notepad and made the correction. It now reads define('TEXT_NOW', '\'Now'); And Im still getting Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/diajejo/public_html/oscommerce/includes/languages/english/index.php on line 32 This is so frustrating...Thanks, Diana I did d-load the notepad ++ and it works great. And thanks for the tip on how to edit properly. I didnt realize that doing it from the file it could cause errors.Thanks a bunch! <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.