Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error unexpected T_STRING


vickilee2006

Recommended Posts

Posted

I am receiving the following error which points to the following data. Please can someone help! My site is down.

 

Parse error: parse error, unexpected T_STRING in /home/buymysec/public_html/shop/includes/languages/english/index.php on line 19

 

INDEX.php contents is as follows:

 

<?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 BuyMySecretDesire.com.<br>Please....feel free to stay awhile and browse awhile.<br>We have for your selection, a range of beautiful quality and affordable sexy lingerie and various fashion items. We will be adding more items in the near future, so please check back often.<br>If you have any questions or suggestions drop us a line.<br>All orders will be dealt with discreetly and precautions taken to ensure your details are secure.<br>Have a wonderful day.');

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

}

?>

Posted

This happens when you use the online File Manager to edit files in osCommerce MS2, but this bug has been corrected in the File Manager in the updated version of MS2 which has been available for download since last November.

 

What you need to do now is to upload an unedited copy of that page, and this will remove the errors (that error being shown is only the first of several).

 

Then, for future, download the file to be edited via FTP, take a backup (just in case), then edit the file in a plain text editor Like Notepad - thought Text Pad is better (free download).

 

When you add text to a page at the includes/languages/english/ level you need to 'escape' any apostrophies with a preceeding backslash e.g.

 

Let's = wrong

Let\'s = right

 

What the File Manager did to cause the error was to remove all existing backslashes in front of apostrophies - this was the bug it had.

 

Vger

Posted
This happens when you use the online File Manager to edit files in osCommerce MS2, but this bug has been corrected in the File Manager in the updated version of MS2 which has been available for download since last November.

 

What you need to do now is to upload an unedited copy of that page, and this will remove the errors (that error being shown is only the first of several).

 

Then, for future, download the file to be edited via FTP, take a backup (just in case), then edit the file in a plain text editor Like Notepad - thought Text Pad is better (free download).

 

When you add text to a page at the includes/languages/english/ level you need to 'escape' any apostrophies with a preceeding backslash e.g.

 

Let's = wrong

Let\'s = right

 

What the File Manager did to cause the error was to remove all existing backslashes in front of apostrophies - this was the bug it had.

 

Vger

 

Thanks for that. What can I do if don't have a back up copy of this file?

Vicki

Posted

Go to www.oscommerce.com, downloads section, and download the osCommerce 2.2 MS2 zip file (the updated set of files), and unzip on your computer.

 

If your osCommerce website is a new install and you haven't modified any files yet then I'd recommend that you upload all of the contents of the 'catalog' folder in the updated version of osCommerce MS2, except for the Install folder and the two configure.php files in catalog/includes/configure.php and catalog/admin/includes/configure.php

 

This will make your site more secure and fix a few bugs at the same time - including the one in the File Manager.

 

Vger

Archived

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

×
×
  • Create New...