Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: Can someone PLEASE help me?


Budger

Recommended Posts

Posted

Can someone please help me? I get the following error on my store:

 

Parse error: parse error, unexpected T_STRING in /mnt/w0506/d23/s49/b022f6a6/www/mystore/nfoscomm/catalog/includes/languages/english/index.php on line 19

 

 

Here's 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', '<br><b>Creative AfterThoughts is a business started by my wife and I to share our talents and creations. We have no employees. We hand paint and craft every item to create one of a kind gifts and collectables with that personal touch.<br><br>****************************************************<br>Item Design Decoration and Color Selection will be done at checkout. Design and Colors may be viewed on the home page. Click on "TOP" on the blue navigation bar at the top of this page to get back to the home page.<br><br>Click the category you wish to view in the upper left box.<br><br> ****************************************************<br>Secure Shopping:<br>When you place orders on our Site, all of your order information, including your card number and delivery address, is transmitted through the Internet using Secure Sockets Layer (SSL) technology. SSL technology causes your browser to encrypt your order information before transmitting it to our secure server. SSL technology, an industry standard, is designed to prevent someone other than operators of our Sites from capturing and viewing your personal information. Please see our Privacy Statement for more information<br><br>Copyright ? 2005 Creative AfterThoughts. All Rights Reserved.');

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', 'Creative AfterThoughts Online');

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

define('HEADING_TITLE', 'Categories');

}

?>

Posted

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

define('TEXT_NOW', '' now');

 

Should be

 

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

define('TEXT_NOW', ' now');

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

I am still getting the same error after correcting what GemRock suggested....???? Other suggestions please?

 

 

 

 

 

Can someone please help me? I get the following error on my store:

 

Parse error: parse error, unexpected T_STRING in /mnt/w0506/d23/s49/b022f6a6/www/mystore/nfoscomm/catalog/includes/languages/english/index.php on line 19

Here's 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', '<br><b>Creative AfterThoughts is a business started by my wife and I to share our talents and creations. We have no employees. We hand paint and craft every item to create one of a kind gifts and collectables with that personal touch.<br><br>****************************************************<br>Item Design Decoration and Color Selection will be done at checkout. Design and Colors may be viewed on the home page. Click on "TOP" on the blue navigation bar at the top of this page to get back to the home page.<br><br>Click the category you wish to view in the upper left box.<br><br> ****************************************************<br>Secure Shopping:<br>When you place orders on our Site, all of your order information, including your card number and delivery address, is transmitted through the Internet using Secure Sockets Layer (SSL) technology. SSL technology causes your browser to encrypt your order information before transmitting it to our secure server. SSL technology, an industry standard, is designed to prevent someone other than operators of our Sites from capturing and viewing your personal information. Please see our Privacy Statement for more information<br><br>Copyright ? 2005 Creative AfterThoughts. All Rights Reserved.');

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', 'Creative AfterThoughts Online');

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

define('HEADING_TITLE', 'Categories');

}

?>

Posted

I am still getting the same error after correcting what GemRock suggested....???? Other suggestions please?

 

 

 

 

 

Can someone please help me? I get the following error on my store:

 

Parse error: parse error, unexpected T_STRING in /mnt/w0506/d23/s49/b022f6a6/www/mystore/nfoscomm/catalog/includes/languages/english/index.php on line 19

Here's 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', '<br><b>Creative AfterThoughts is a business started by my wife and I to share our talents and creations. We have no employees. We hand paint and craft every item to create one of a kind gifts and collectables with that personal touch.<br><br>****************************************************<br>Item Design Decoration and Color Selection will be done at checkout. Design and Colors may be viewed on the home page. Click on "TOP" on the blue navigation bar at the top of this page to get back to the home page.<br><br>Click the category you wish to view in the upper left box.<br><br> ****************************************************<br>Secure Shopping:<br>When you place orders on our Site, all of your order information, including your card number and delivery address, is transmitted through the Internet using Secure Sockets Layer (SSL) technology. SSL technology causes your browser to encrypt your order information before transmitting it to our secure server. SSL technology, an industry standard, is designed to prevent someone other than operators of our Sites from capturing and viewing your personal information. Please see our Privacy Statement for more information<br><br>Copyright ? 2005 Creative AfterThoughts. All Rights Reserved.');

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', 'Creative AfterThoughts Online');

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

define('HEADING_TITLE', 'Categories');

}

?>

Posted

not sure about this - but maybe the "*" are throwing things off - you could see if such is the case by escaping them:

changing...

****************************************************

to...

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

 

weird - but it MIGHT work...

Posted

Line 19:

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

 

You need to escape the apostrophe.

 

So:

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

Posted

Bennstein,

 

nice catch - i missed that -- perhap's cause correcting all titles as such was the first corrections i made to the shop - still i should have caught that - nice catch ;)

Posted

THANK YOU! THANK YOU! THANK YOU!

It worked! I so very greatly appreciate the help.

 

 

 

 

Line 19:

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

 

You need to escape the apostrophe.

 

So:

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

Archived

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

×
×
  • Create New...