mezzodi Posted December 22, 2004 Posted December 22, 2004 Tried to edit my index.php page online and returned an error. I changed the following line...define('TEXT_MAIN', '' .PROJECT_VERSION . '</b></font>. '); I tried to change it back but still came up with the following error. Parse error: parse error, unexpected T_STRING in /mnt/web_h/d14/s47/b01d9da9/www/mezzodionline/nfoscomm/catalog/includes/languages/english/index.php on line 19 The code looks like this now <?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', '' .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'); } ?> What can i do to fix this?
boxtel Posted December 22, 2004 Posted December 22, 2004 Tried to edit my index.php page online and returned an error. I changed the following line...define('TEXT_MAIN', '' .PROJECT_VERSION . '</b></font>. ');I tried to change it back but still came up with the following error. Parse error: parse error, unexpected T_STRING in /mnt/web_h/d14/s47/b01d9da9/www/mezzodionline/nfoscomm/catalog/includes/languages/english/index.php on line 19 The code looks like this now <?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', '' .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'); } ?> What can i do to fix this? <{POST_SNAPBACK}> by not using the osc editor Treasurer MFC
Iggy Posted December 22, 2004 Posted December 22, 2004 Looks like an open quote define('TEXT_MAIN', '' .PROJECT_VERSION . '</b></font>. '); ..............................^ Not sure what you're trying to do there but see if you can either balance it by adding another " or delete it. And remember to save the file while leaving the orginal open so you can revert easily :thumbsup: Hope that helps, Iggy Everything's funny but nothing's a joke...
mezzodi Posted December 22, 2004 Author Posted December 22, 2004 i reconfigured with help from visionhead.com. now reading the following osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', ' Put your text here Make sure you comment out any apostrophes for example What\'s '); 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', 'Show:'); 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'); } ?> the homepage shows the html code but nothing else???
Iggy Posted December 22, 2004 Posted December 22, 2004 i reconfigured with help from visionhead.com. now reading the following osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', ' Put your text here Make sure you comment out any apostrophes for example What\'s '); 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', 'Show:'); 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'); } ?> the homepage shows the html code but nothing else??? <{POST_SNAPBACK}> Revert the file from a fresh archive. Start again. Iggy Everything's funny but nothing's a joke...
mezzodi Posted December 22, 2004 Author Posted December 22, 2004 shouldn't the catalog/includes/index file be larger than the catalog/includes/languages/english/index file. both of my index files are now the same size. i think i fixed the catalog/includes/languages/english/index file but are they not different? hope that made sense.
ozcsys Posted December 22, 2004 Posted December 22, 2004 There is no catalog/includes/index.php file chances are you just uploaded the file to the wrong folder at some point. You should have one at catalog/index.php catalog/includes/languages/english/index.php and yes they are different. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
mezzodi Posted December 22, 2004 Author Posted December 22, 2004 There is no catalog/includes/index.php file chances are you just uploaded the file to the wrong folder at some point. You should have one at catalog/index.php catalog/includes/languages/english/index.php and yes they are different. <{POST_SNAPBACK}> how can i get the larger one back. if i upload the original will it affect my store?
ozcsys Posted December 22, 2004 Posted December 22, 2004 how can i get the larger one back. if i upload the original will it affect my store? <{POST_SNAPBACK}> If you uploaded the incorrct index.php file to your catalog/index.php then you will need to replace it with the original as your site is not working. If your site is working then you have the correct one. The file you have at catalog/includes/index.php is not needed and you can just delete it. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
mezzodi Posted December 22, 2004 Author Posted December 22, 2004 If you uploaded the incorrct index.php file to your catalog/index.php then you will need to replace it with the original as your site is not working. If your site is working then you have the correct one. The file you have at catalog/includes/index.php is not needed and you can just delete it. <{POST_SNAPBACK}> thanks richard. back to good.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.