Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please Help..


dmatwood

Recommended Posts

I keep getting this parse error, I don't know if it's my edotor or what. I haven't had too much problems with it until lately and I'm pretty new too PHP. Thanks

 

This is the error I'm getting now:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/thecageb/public_html/Storefront/catalog/index.php on line 34

 

 

Heres the code:

 

<?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', 'Welcome to The Cage Billiards Products. Feel free to look around our store. We have many great deals on Billiards Supplies. We make it our goal to give you all your billiard neeeds.');

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', 'Welcome To The Cage Billiards Online Store');

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_NOW', '' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'Welcome To The Cage Billiards Online Store');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

// BOF Wolfen featured sets

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_FEATURED_PRODUCTS', 'There are no featured products');

define('TEXT_MORE_INFO', '......');

// EOF Wolfen featured sets

?>

Link to comment
Share on other sites

I keep getting this parse error, I don't know if it's my edotor or what. I haven't had too much problems with it until lately and I'm pretty new too PHP. Thanks

 

This is the error I'm getting now:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/thecageb/public_html/Storefront/catalog/index.php on line 34

Heres the code:

 

<?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', 'Welcome to The Cage Billiards Products. Feel free to look around our store. We have many great deals on Billiards Supplies. We make it our goal to give you all your billiard neeeds.');

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', 'Welcome To The Cage Billiards Online Store');

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_NOW', '' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'Welcome To The Cage Billiards Online Store');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

// BOF Wolfen featured sets

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_FEATURED_PRODUCTS', 'There are no featured products');

define('TEXT_MORE_INFO', '......');

// EOF Wolfen featured sets

?>

 

line that cuasing the error is :

 

define('TEXT_BUY', 'Buy 1 '');

 

should be define('TEXT_BUY', 'Buy 1 \'');

 

hope this helps. Andy...

Link to comment
Share on other sites

sorry to correct you but the error is in catalog/includes/languages/english/index.php

I did that and I'm still getting the same error:

 

this is the error i'm getting, I gave you the wrong DIR last time:

 

Parse error: parse error, unexpected T_STRING in /home/thecageb/public_html/Storefront/catalog/includes/languages/english/index.php on line 34

Link to comment
Share on other sites

Don't try and teach your grandmother how to suck eggs! There are multiple Parse Errors in includes/languages/english/index.php, but the T_CONSTANT_ENCAPSED_STRING error is in the root level index.php file.

 

Vger

sorry to correct you but the error is in catalog/includes/languages/english/index.php
Link to comment
Share on other sites

Don't try and teach your grandmother how to suck eggs! There are multiple Parse Errors in includes/languages/english/index.php, but the T_CONSTANT_ENCAPSED_STRING error is in the root level index.php file.

 

That worked, Thank you so much for your help.

David

 

Apparently i have just taught my grand mother to suck eggs :rolleyes:

 

Cheers granma. :-"

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...