Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP! Corrupted Languages Index.php file


sand_danser

Recommended Posts

I put an e-mail link into my index page & saved it but now I've lost the "save" button off the editing page so it seems I've saved it wrong. All I get is this:

 

Parse error: parse error, unexpected T_STRING in /home/www/*******/catalog/includes/languages/english/index.php on line 13 :(

Do I need to re-upload the languages folder or index.php or something else ?

I could really use some good advice here :blink:

Link to comment
Share on other sites

as the error states there is an unexpected T_STRING so if you post your catalog/includes/languages/english/index.php file someone can take a look at it for you and correct. This is a simple error caused by breaking the php code via a missing bracket or punctuation mark.

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.

Link to comment
Share on other sites

Thanx 241, here's the page as I've saved it:

 

<?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', '<font size="3"><font color="navy"><b>Get your on-line tackle bargains </font></size><font size="4"><font color="red"><b>HERE!</b></font></size><font size="3"><font color="navy"> We/'ve set up a site so a few local lads can sell their home made tackle over the internet. Its specifically aimed at Anglers of the North East and this site is dedicatated to getting you your terminal tackle at the rates that we Geordie Anglers know & want. Registering is simple, just fill the form in, then you can order all the tackle you need via a <a href ="http://www.paypal.com">PAYPAL</a>, <a href ="http://www.nochex.com">NOCHEX</a>, or Credit Card account. Any payment made via the site is made securely via these options unless your local & we can arrange a C.O.D payment. All addresses & payments will be verified prior to posting of the tackle ordered.</font></size><P><BR>We/'re busy trying to settle the postage costs & other small problems so just <a href="mailto:[email protected]">E-MAIL</a> us with any questions.');

 

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', 'WELCOME! ');

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

}

?>

</textarea></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>

</tr>

<tr>

<td align="right"><input type="image" src="includes/languages/english/images/buttons/button_save.gif" border="0" alt="Save" title=" Save "> <a href="http://www.northeasttacklesupplies.co.uk/catalog/TOONARMY/define_language.php?lngdir=english"><img src="includes/languages/english/images/buttons/button_cancel.gif" border="0" alt="Cancel" title=" Cancel "></a></td>

</tr>

</table></td>

</form></tr>

</table></td>

</tr>

</table></td>

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td align="center" class="smallText">

E-Commerce Engine Copyright ? 2003 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a><br>

osCommerce provides no warranty and is redistributable under the <a href="http://www.fsf.org/licenses/gpl.txt" target="_blank">GNU General Public License</a>

</td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="5"></td>

</tr>

<tr>

<td align="center" class="smallText">Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a></td>

</tr>

</table>

<!-- footer_eof //-->

<br>

</body>

</html>

 

On the editing page I don't have the save option anymore so wonder if I've overwrote it somehow with the index.php file ? I've removed & corrected all the code I can see to be causing me grief but don't know a lot. Maybe your expertise will see the error :)

Link to comment
Share on other sites

I can't believe how bloody stupid I've been :angry: what a stupid mistake :lol:

This still doesn't explain why the "save button" has disappeared :blink: Any ideas anyone cos I can't save the page ?

Link to comment
Share on other sites

I've managed to edit my (define_languages) index page & upload it but it's definately saved wrong as the "save" & "cancel buttons and the os commerce "powered by" are at the top of the index page meaning that somehow the two files are merged ?

If I put the page up would someone be able to edit/correct it for me please as I don't know much PHP just yet ?

Here's a LINK so u can see what I mean (anyone) :(

Link to comment
Share on other sites

you have also lost all navigation.

there is a file catalog/includes/header.php for the header and another catalog/includes/footer.php for the footer.

 

I do not see why you have all the html below the ?> this is not required

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...