juliajia Posted January 14, 2005 Posted January 14, 2005 I've removed the default paragraph in define('TEXT_MAIN', '.....'); i.e. first line in the index.php page under includes/languages/english folder. Save it and reupload it and the index.php page turned up to be empty. Anybody has the similar problem before? Please help! Thanks a million !
Guest Posted January 14, 2005 Posted January 14, 2005 What do you mean by 'the page is empty'. Are the headers and left and right columns there?
Guest Posted January 15, 2005 Posted January 15, 2005 well...you deleted all the text and it should be empty. Bobby
Guest Posted January 15, 2005 Posted January 15, 2005 Put your html in define('TEXT_MAIN', '.....'); and bam! Magic LOL. :thumbsup:
juliajia Posted January 18, 2005 Author Posted January 18, 2005 Put your html in define('TEXT_MAIN', '.....'); and bam! Magic LOL. :thumbsup: <{POST_SNAPBACK}>
juliajia Posted January 18, 2005 Author Posted January 18, 2005 That's what I did and the index.php page shows up empty. I'm pasting the entire /catalog/includes/languages/english/index.php file below. Please let me know if you see anything wrong. thanks a lot ! <?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', 'test'); 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'); } ?> Thanks
241 Posted January 18, 2005 Posted January 18, 2005 That's what I did and the index.php page shows up empty. I'm pasting the entire /catalog/includes/languages/english/index.php file below. Please let me know if you see anything wrong.thanks a lot ! <{POST_SNAPBACK}> you have used the online filemanager to edit the file and this has removed the backslashes from the code which should be giving you a parse error for that file however if the page is showing empyt this would suggest that error reporting is switched off in your php.ini file on the server. try uploading this : <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url=http://www.oscommerce.com]http://www.oscommerce.com[/url] Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'test'); 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'); } ?> when editing a file it is better to download the file using an ftp program such as ws_ftp and then edit offline, then use the ftp program to upload to the server. 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! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Guest Posted January 18, 2005 Posted January 18, 2005 You need to put your HTML in here define('TEXT_MAIN', 'test'); For example: define('TEXT_MAIN', '<h1>SPECIAL OFFERS</h1><p>Currently we are running a special <i><b>buy on get one free</b></i> promotion!<br/>To qualify you need to ...........</p>');
Guest Posted January 18, 2005 Posted January 18, 2005 Thanks Steve, I didn't notice the missing backslashes. :-"
juliajia Posted January 19, 2005 Author Posted January 19, 2005 Thank you so much for your help!!! It works now.
juliajia Posted January 20, 2005 Author Posted January 20, 2005 /catalog/includes/languages/english/index.php > Below is what I loploaded and the index.php page shows up empty again. I'm pasting the entire index.php file below. Please let me know if you see anything wrong. Thanks a lot! <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'All the prices are subject to change depends on the order quantity.'); 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'); } ?>
juliajia Posted January 20, 2005 Author Posted January 20, 2005 I tried to replace the "test" with "The prices are subject to change...". But when I upload the file, the index.php is not working again. Please take a look at the code below to see if you can find any errors. Thanks a lot! <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'All the prices are subject to change depends on the order quantity.'); 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'); } ?>
Guest Posted January 20, 2005 Posted January 20, 2005 Julia, If you post the same thing 3 times it will not help get your problem solved any faster. Bobby
Guest Posted January 20, 2005 Posted January 20, 2005 I tried to replace the "test" with "The prices are subject to change...". But when I upload the file, the index.php is not working again. Please take a look at the code below to see if you can find any errors. Thanks a lot! <{POST_SNAPBACK}> Looks okay as near as I can tell. What does your catalog/index.php file look like? What's your URL?
KennethS Posted January 20, 2005 Posted January 20, 2005 Make sure there is not a space at the end of the file, that is the only problem I see that could have been made. Also make sure not to use webhost control panel, or the built in file manager to edit files. Kenneth S -------------- Customer "Are you a real programmer?" Me "No, but I did stay at a Holiday Inn Express last night"
Guest Posted January 20, 2005 Posted January 20, 2005 Use this one. Fixed & tested it for you. :thumbsup: <?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 (c) 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'All the prices are subject to change depends on the order quantity.'); 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'); } ?>
241 Posted January 20, 2005 Posted January 20, 2005 you have this define('TEXT_NOW', '\ now'); which gives the escaping backslash but no apostrophe to escape. Try this define('TEXT_NOW', '\' now'); 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! Is your Osc dated try Phoenix raising oscommerce from the ashes.
juliajia Posted January 20, 2005 Author Posted January 20, 2005 I just uploaded the code you modified above. But the index.php is still empty. The URL of my site is http://www.ninesusa.com. Please help me out. Thank you so much!!! By the way, I am so sorry for posting so many same content stuff. It was a mistake.
241 Posted January 20, 2005 Posted January 20, 2005 did you upload the file to the catalog/includes/languages/english/ directory or did you accidentally overwrite your catalog/index.php 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! Is your Osc dated try Phoenix raising oscommerce from the ashes.
juliajia Posted January 21, 2005 Author Posted January 21, 2005 did you upload the file to the catalog/includes/languages/english/ directory or did you accidentally overwrite your catalog/index.php <{POST_SNAPBACK}> Hi, Steve: I did accidentlly overwrite my catalog/index.php(I just don't understand how this could happen). Then what should I do next? Do you have the code of catalog/index.php? Thanks a lot!!!
jamesepain Posted January 21, 2005 Posted January 21, 2005 can somone give me the index file in "/" because i replaced it with a file that should be in english folder :( You Can Win, But I Can't Lose. James
juliajia Posted January 21, 2005 Author Posted January 21, 2005 I don't know if this is the one you are asking: <?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', 'test'); 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'); } ?>
jamesepain Posted January 21, 2005 Posted January 21, 2005 doen't look like it, you see my problem is that i replace the /index.php thinking it was .../english/index.php :( You Can Win, But I Can't Lose. James
241 Posted January 21, 2005 Posted January 21, 2005 Download a full version of the osCommerce from Downloads and keep it in a safe place. By doing this you will allways have a copy of the files. Next unpack this download and upload the catalog/index.php file to the correct place on the server. With this done now download all the files from the server and keep in a safe place this will give you a backup of your files. You should also backup your database and keep that in a safe place. You will also need to upload a copy of your changed catalog/languages/english/index.php which was originally uploaded to the wrong place. 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! Is your Osc dated try Phoenix raising oscommerce from the ashes.
jamesepain Posted January 21, 2005 Posted January 21, 2005 what i did is install it to a dif dir (useinf cpanel auto install) and copyed the index from there, thanks anyway 241 You Can Win, But I Can't Lose. James
Recommended Posts
Archived
This topic is now archived and is closed to further replies.