Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error Line 18


Diajejo

Recommended Posts

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

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

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

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...