Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help, my website has entirely disappeared


kwaks

Recommended Posts

help, my website has entirely disappeared, now it says

 

Parse error: parse error, unexpected T_STRING in /homepages/8/d188198301/htdocs/includes/languages/english/index.php on line 20

 

and the code i modified in index.php looks like this

 

 

 

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

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','What\'s 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', 'What\'s New Here?');

elseif ($category_depth == 'nested')

define('HEADING_TITLE', 'Categories');

 

?>

 

thankyou

kwaks

 

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

the { and } needed for the if statements have gone.

 

Try:

 

CODE

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

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','What\'s 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', 'What\'s New Here?');

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

define('HEADING_TITLE', 'Categories');

}

?>

 

 

Tom

 

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

kwaks

 

 

 

 

Thank you, thats made a difference but now its saying that

 

Parse error: parse error, unexpected '{' in /homepages/8/d188198301/htdocs/includes/languages/english/index.php on line 18

 

Any more ideas what i did to it?

Thanks

Link to comment
Share on other sites

if (($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) {

define('HEADING_TITLE','What\'s New Here');

define('TABLE_HEADING_IMAGE','');

 

 

Probably similar thing:

 

Mine is: ['manufacturers_id'])) ) {

 

Helps to download a fresh copy of oscommerce files to your local machine so you can compare or restore from as necessary if back up not happened.

Link to comment
Share on other sites

Have you got a backup?

 

If not, go through the text editor that you were using and 'undo' the changes you made to the file, taking it right back to how you downloaded it.

 

Save that. Then FTP up to your shop and see if that works.

 

Good Luck

----------------------------------------

Minxy :)

 

"Keep plodding on to achieve your dreams"

Link to comment
Share on other sites

if (($category_depth == 'products') || (isset($HTTP_GET_VARS

['manufacturers_id']))

 

should be

if (($category_depth == 'products') || (isset($HTTP_GET_VARS

['manufacturers_id']));

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...