Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error message when editing index.php


Guest

Recommended Posts

Posted

Hi can anyone help

 

I have tried looking for this but cant find it, know doubt someone has encountered this problem

 

i get the following error message when i edit the index.php within the catalog/includes/languages/english/index.php in oscommerce.

 

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

 

all i am trying to do is delete the default text i get the above. When i try and add text to the standard i still get a similar message.

 

This is what the top part of the code 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

*/

 

define('TEXT_MAIN', '');

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

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

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

 

 

many thanks

Posted

starting with the original text, you just need to add a space between the tick marks

 

Original

define('TEXT_MAIN', 'Welcome');

 

Yours

define('TEXT_MAIN', '');

 

Proper Fix

define('TEXT_MAIN', ' ');

 

So, just add a space and try it out.

Archived

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

×
×
  • Create New...