Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index.php file error


amanz

Recommended Posts

Posted

I have removed sample text from the index.php file, but I'm getting an error on line 13: Parse error: syntax error, unexpected '<' in /home/content/t/e/r/terranova/html/OSC/catalog/includes/languages/english/index.php on line 13

 

Can somebody review the file and find the syntax error? Many thanks!

 

<?php

/*

$Id: index.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2007 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN',<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"></b><br><br><br> <span class="messageStackError">background</span> color.<br><br></td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br><br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br> <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br><br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess"> target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td </u></a>.</td></tr></table><br> PROJECT_VERSION . '</b></font>.');

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

You are missing a single quote in the TEXT_MAIN definition.

 

In the line that begins with this:

define('TEXT_MAIN',<br><br><table border="0" ...

there should be a single quote before the first <br>:

define('TEXT_MAIN','<br><br><table border="0" ...

Check out Chad's News.

Posted

You are missing a single quote in the TEXT_MAIN definition.

 

In the line that begins with this:

define('TEXT_MAIN',<br><br><table border="0" ...

there should be a single quote before the first <br>:

define('TEXT_MAIN','<br><br><table border="0" ...

 

Many thanks...I've made the change as suggested, but I get the same error message on line 13!

Posted

There's another code error in that line.

 

Near the end of line 13, the following text:

</table><br> PROJECT_VERSION

is missing a single quote and a period between the <br> and PROJECT_VERSION. It should be:

</table><br>' . PROJECT_VERSION

 

Did you make changes to this? Because it doesn't look quite right to me.

Check out Chad's News.

Posted

There's another code error in that line.

 

Near the end of line 13, the following text:

</table><br> PROJECT_VERSION

is missing a single quote and a period between the <br> and PROJECT_VERSION. It should be:

</table><br>' . PROJECT_VERSION

 

Did you make changes to this? Because it doesn't look quite right to me.

 

Many thanks...the last change did the job! I owe you!

Archived

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

×
×
  • Create New...