Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error T-String


jenvinem

Recommended Posts

Posted

Okay, I've done something wrong. I followed the knowledge base and did what it said and now I don't have a front page and instead have this,

 

Parse error: syntax error, unexpected T_STRING in /home/jenvinem/public_html/includes/languages/english/index.php on line 13

This is what my text looks like

 

 

<?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

*/

includes/languages/english/index.php

define('TEXT_MAIN','This is just a little message to tell people that I am not up and running yet, but will be soon. If you would like to glance through my merchandise, feel free, but you will not be able to buy anything yet. Thank you very much for coming and we hope to see you back soon when the site is up and working. All the Best from Jenvin Emporium");

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

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');

}

?>

 

What the heck have I done wrong?

 

Jenny

Posted

Jenvin Emporium");

change to

Jenvin Emporium');

 

the change is the double quote to a single quote

" changes to '

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted
Okay, I've done something wrong. I followed the knowledge base and did what it said and now I don't have a front page and instead have this,

 

Parse error: syntax error, unexpected T_STRING in /home/jenvinem/public_html/includes/languages/english/index.php on line 13

This is what my text looks like

<?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

*/

includes/languages/english/index.php

define('TEXT_MAIN','This is just a little message to tell people that I am not up and running yet, but will be soon. If you would like to glance through my merchandise, feel free, but you will not be able to buy anything yet. Thank you very much for coming and we hope to see you back soon when the site is up and working. All the Best from Jenvin Emporium");

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

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');

}

?>

 

What the heck have I done wrong?

 

Jenny

 

Hello Jenny,

 

I see at the end quotation marks " instead of ' :

 

define('TEXT_MAIN','This is just a little message to tell people that I am not up and running yet, but will be soon. If you would like to glance through my merchandise, feel free, but you will not be able to buy anything yet. Thank you very much for coming and we hope to see you back soon when the site is up and working. All the Best from Jenvin Emporium" --> changer le " pour '

Posted

Hi Folks,

After 3 days of playing with this problem, I finally found out what it was. For the benefit of others, be careful of what you use in the knowledge base.

This is the line that was causing all the problems.

 

includes/languages/english/index.php

 

I took it out and everything came back. The other thing was the " instead of '

 

So, thank you to the nice people that helped me.

 

All the best,

 

Jenny

Archived

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

×
×
  • Create New...