Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP!


Keepsake Designs

Recommended Posts

Hi All! I'm new here and have a MAJOR problem...after changing the index file under...languages/english/index through the file manager my site is DOWN! This is what I changed:

 

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

define('HEADING_TITLE', 'Welcome To Keepsake Designs');

 

And now the site is down! Please help!

 

Lorri-Anne

Link to comment
Share on other sites

I changed an index.php file and now my site is down...

 

This is the path:

 

/home/httpd/html/keepsakedesigns/cgi-bin/oscommerce//includes/languages/english.index

 

This is what I changed...

 

['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Welcome To Keepsake Designs');

 

Can someone tell what else I need to change to get the site back up and running?

Link to comment
Share on other sites

The error on your page says

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/httpd/html/keepsakedesigns/cgi-bin/oscommerce/includes/languages/english/index.php on line 34
That is saying the error is in the includes/languages/english/index.php on line 34. There will be a typing mistake there or around there. If you cannot see anyting obvious, post that code here so someone can look it over.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

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

 

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

define('HEADING_TITLE', 'Welcome To Keepsake Designs');

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', 'Welcome to Keepsake Designs!');

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

define('HEADING_TITLE', 'Categories');

}

?>

 

 

What I changed is in RED I truly appreciate you're help!

Link to comment
Share on other sites

Hi All! I'm new here and have a MAJOR problem...after changing the index file under...languages/english/index through the file manager my site is DOWN! This is what I changed:

 

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

define('HEADING_TITLE', 'Welcome To Keepsake Designs');

 

And now the site is down! Please help!

 

Lorri-Anne

 

I did try to restore, but that didn't work? Do you recommend using "Note Pad" to edit files and then up load the new file using FTP?

 

As you can see I'm new to this OS Commerce thing....

Link to comment
Share on other sites

yes there are some problems with the osc file manager editing files. Use a regular editor and an ftp to upload, there are some better than notepad (you could try phpdesigner for instance, free with syntax php highlighting)

Link to comment
Share on other sites

I changed an index.php file and now my site is down...

 

This is the path:

 

/home/httpd/html/keepsakedesigns/cgi-bin/oscommerce//includes/languages/english.index

 

This is what I changed...

 

['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Welcome To Keepsake Designs');

 

Can someone tell what else I need to change to get the site back up and running?

 

 

Thanks Jack! I posted the code, I'm sure it can't be something serious, I just changed what was highlighted in red....and BOOM the site went down............and thanks for your help!

Link to comment
Share on other sites

yes there are some problems with the osc file manager editing files. Use a regular editor and an ftp to upload, there are some better than notepad (you could try phpdesigner for instance, free with syntax php highlighting)

 

 

Hmmm...Okay but right now I just need to get this back up and running...I posted the code do you have a quick fix at this point?

 

I appreciate your help!

Link to comment
Share on other sites

I dont have a quick fix because the file might got corrupted. That's a typical effect of this problem. If you haven't made lots of changes to that file you could grab the default osc file and re-do the changes.

Link to comment
Share on other sites

Hmmm...Okay but right now I just need to get this back up and running...I posted the code do you have a quick fix at this point?

 

I appreciate your help!

 

 

 

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

 

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

define('HEADING_TITLE', 'Welcome To Keepsake Designs');

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', 'Welcome to Keepsake Designs!');

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

define('HEADING_TITLE', 'Categories');

}

?>

 

 

Here's the code...what I changed is in RED

 

I dont have a quick fix because the file might got corrupted. That's a typical effect of this problem. If you haven't made lots of changes to that file you could grab the default osc file and re-do the changes.

 

'

Where do I find the default file?

Link to comment
Share on other sites

Thanks Jack! I posted the code, I'm sure it can't be something serious, I just changed what was highlighted in red....and BOOM the site went down............and thanks for your help!
Where is the code?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Where is the code?

 

Jack

 

 

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

 

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

define('HEADING_TITLE', 'Welcome To Keepsake Designs');

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', 'Welcome to Keepsake Designs!');

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

define('HEADING_TITLE', 'Categories');

}

?>

 

 

HERE...

Link to comment
Share on other sites

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

 

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

define('HEADING_TITLE', 'Welcome To Keepsake Designs');

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', 'Welcome to Keepsake Designs!');

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

define('HEADING_TITLE', 'Categories');

}

?>

What I changed is in RED I truly appreciate you're help!

 

You have a double quote instead of single quote on your Buy 1 line for starters... and another one on the line right after

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...