Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

parse error, unexpected T_STRING


Mitsa

Recommended Posts

Posted

I was trying to change some text through the admin section on the index page. I didnt think I had changed anything else but I now get this message when the index page of my site is supposed to come up.,

 

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

 

Does anyone know what I have done and how I sort it please?

 

I really need to get it sorted as soon as so any help would be greatly appreciated.

 

Thanks

 

Kris

Posted

Editing the files there stripped the necessary escape characters (backslashes) out, causing your error. In the text, wherever an apostrophe appears it needs to be preceded by a backslash, so:

 

what's needs to be what\'s

 

You'll need to use FTP to download the file, make the edits, then upload. Keep a backup each time in case you don't like the results.

 

If you're not sure where the mistakes are, you can post the lines here.

 

 

I was trying to change some text through the admin section on the index page. I didnt think I had changed anything else but I now get this message when the index page of my site is supposed to come up.,

 

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

 

Does anyone know what I have done and how I sort it please?

 

I really need to get it sorted as soon as so any help would be greatly appreciated.

 

Thanks

 

Kris

Posted

This is all the lines.

 

<?php

/*

 $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 [url=http://www.oscommerce.com]http://www.oscommerce.com[/url]



 Copyright ? 2003 osCommerce



 Released under the GNU General Public License

*/



define('TEXT_MAIN', '<strong>Brandwholesale</strong> have a sound reputation for supplying top quality designer fashion. All our stock is 100% genuine. Please do not confuse us with some of the many "wholesale websites" selling illegal counterfeit goods. We carry wholesale stock from designers like EVISU, DIESEL, ABERCROMBIE & FITCH, RALPH LAUREN, FENDI, STONE ISLAND & MORE.<br>

<strong>Regular New Stock</strong><br>
We receive deliveries on a weekly/fortnightly basis and so we have regularly updated new designer wholesale stock.<br>

<strong>Purchasing Stock</strong><br>
We sell designer stock on a wholesale basis only. We have no minimum order level but we do expect you to buy the amounts advertised on-site.<br>

<strong>Delivery of Stock</strong><br>
We can deliver the stock to you anywhere in the UK, usually next day unless otherwise stated, via DHL or by Royal Mail Special Delivery. We insist that all payments must clear in our account before anything is despatched. We have a set delivery fee of ?15.00 GBP no matter how big the order. Overseas customers must contact us prior to purchasing for a shipping quote.<br>

<strong>Payment</strong><br>
We take payment by cash, cheque, bank transfer and via our secure online Paypal shopping cart. Cash must be sent to us via registered mail, cheques must clear for 5 working days in our account before orders will be despatched. If paying by Paypal your account must be covered by their sellers protection programme. No goods will be sent to unconfirmed addresses, and accounts.<br>



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', 'Whats New 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', '');

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

 define('HEADING_TITLE', 'Categories');

}

?>

Posted

you are missing your closing set here

 

accounts.<br>

 

should be

 

accounts.<br>');

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

Thanks guys youve been a great help for a novice like myself.

 

Everything is fine now.

Archived

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

×
×
  • Create New...