Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

simple t_string error


crust

Recommended Posts

i know this is really simple but i cant figure it out, after changeing some text on my index page when i go to my site this message pops up

 

Parse error: parse error, unexpected T_STRING in /home/crust/public_html/includes/languages/english/index.php on line 25

 

here is a copy of my index file:

 

<?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', 'Curstpunks.com is owned and operated by punks in the sprit of DIY.

<br><br>

We provide the absolute highest quality of studs, spikes, bullet belts, and patches at dirt cheap prices.<br> To get started click on a category in the upper left corner.<br><br>

This site is still under construction, CRUSTPUNKS will be open very shortly we expect to start takeing orders by november 18th maybe sooner, please bare with us, please do not place any orders at this time. Thanx.

<br><br>

If you have any questions or suggestions feel free to contact us.

');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

whats wrong, help please.. :'(

Link to comment
Share on other sites

Line 25 is below what you have posted. Could your problem be this line

 

define('HEADING_TITLE', 'Let's See What We Have Here');

 

which should read

 

define('HEADING_TITLE', 'Let\'s See What We Have Here');

 

Never use the osCommerce File Manager to edit files, as it strips slashes out from in front of apostrophies - causing parse errors.

 

Vger

Link to comment
Share on other sites

here is the full page.

<?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', 'Curstpunks.com is owned and operated by punks in the sprit of DIY.

<br><br>

We provide the absolute highest quality of studs, spikes, bullet belts, and patches at dirt cheap prices.<br> To get started click on a category in the upper left corner.<br><br>

This site is still under construction, CRUSTPUNKS will be open very shortly we expect to start takeing orders by november 18th maybe sooner, please bare with us, please do not place any orders at this time. Thanx.

<br><br>

If you have any questions or suggestions feel free to contact us.

');

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', 'Welcome to Crustpunks');

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

define('HEADING_TITLE', 'Categories');

}

?>

 

ya i did use os to change my files, live and learn..

Link to comment
Share on other sites

Good guess on my part, on the line affected, and the use of the File Manager. Don't worry, this comes up so many times each day. I don't know why they don't just put a big 'Sticky' at the top of the forums "DO NOT USE THE FILE MANAGER TO EDIT FILES".

 

Vger

Link to comment
Share on other sites

i changed the back slash on the line 25 now i have this error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/crust/public_html/includes/languages/english/index.php on line 39

whats the deal now?

Link to comment
Share on other sites

heres the error message now

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/crust/public_html/includes/languages/english/index.php on line 39

heres the full page

<?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', 'Curstpunks.com is owned and operated by punks in the sprit of DIY.

<br><br>

We provide the absolute highest quality of studs, spikes, bullet belts, and patches at dirt cheap prices.<br> To get started click on a category in the upper left corner.<br><br>

This site is still under construction, CRUSTPUNKS will be open very shortly we expect to start takeing orders by november 18th maybe sooner, please bare with us, please do not place any orders at this time. Thanx.

<br><br>

If you have any questions or suggestions feel free to contact us.

');

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', 'Welcome to Crustpunks');

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

define('HEADING_TITLE', 'Categories');

}

?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...