bksbeat Posted July 10, 2006 Posted July 10, 2006 Hi Folks, Im starting to edit the index.php file - Have not done much this far, only changes some of the text in the text main section. When I save what I have done thus far and run www.nontando.com/catalog I get this error message Parse error: parse error, unexpected '<' in /mnt/w0511/d39/s22/a0008a62/www/catalog/index.php on line 16 If someone can help me re. where I have gone wrong that will be much appreciated. Im using the file manager in OSCommerce to make these changes. osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'We bring to you the simplicity and creativity that represent the spirit of Africa. Nontando offers you the beauty of African craftsmanship. We were born and raised in Africa and bring to you affordable artifacts, home decor and gifts. As lovers of African design we have and will continue to seek to market products of the highest quality. The diversity and uniqueness of our products will attempt to fulfill a broad range of our customers interests and needs. Every year we personally travel back home to do our buying and have found sources and established relationships in Africa which will ensure that our customers have access to the finest of African craft.'); <table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before
choosealogin Posted July 10, 2006 Posted July 10, 2006 The error is pointing to catalog/index.php The code you posted is from catalog/includes/languages/english/index.php Also, the part that I bolded below will cause a problem, as it is past the closing parentheses/semicolon (after African craft.'); define('TEXT_MAIN', 'We bring to you the simplicity and creativity that represent the spirit of Africa. Nontando offers you the beauty of African craftsmanship. We were born and raised in Africa and bring to you affordable artifacts, home decor and gifts. As lovers of African design we have and will continue to seek to market products of the highest quality. The diversity and uniqueness of our products will attempt to fulfill a broad range of our customers interests and needs. Every year we personally travel back home to do our buying and have found sources and established relationships in Africa which will ensure that our customers have access to the finest of African craft.'); <table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before
bksbeat Posted July 10, 2006 Author Posted July 10, 2006 Now Im really confused. Why would it be referring to catalog/index.php if that is not even the file I changed. The error is pointing to catalog/index.php The code you posted is from catalog/includes/languages/english/index.php Also, the part that I bolded below will cause a problem, as it is past the closing parentheses/semicolon (after African craft.'); define('TEXT_MAIN', 'We bring to you the simplicity and creativity that represent the spirit of Africa. Nontando offers you the beauty of African craftsmanship. We were born and raised in Africa and bring to you affordable artifacts, home decor and gifts. As lovers of African design we have and will continue to seek to market products of the highest quality. The diversity and uniqueness of our products will attempt to fulfill a broad range of our customers interests and needs. Every year we personally travel back home to do our buying and have found sources and established relationships in Africa which will ensure that our customers have access to the finest of African craft.'); <table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before
choosealogin Posted July 10, 2006 Posted July 10, 2006 OK, EDIT ==== I just noticed that you are using the file manager. I would recommend avoiding that. It's better to use FTP, to download, save a backup copy, then upload your changed files. Just do away with the leftover osC example text / table code that I made bold....see where that takes you.
bksbeat Posted July 10, 2006 Author Posted July 10, 2006 This is what I was left with....Im now not getting any errors but nothing is been displayed..Im not sure at all why my index.php was updated when I originally updated the one in the engligh dir. $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', 'We bring to you the simplicity and creativity that represent the spirit of Africa. Nontando offers you the beauty of African craftsmanship. We were born and raised in Africa and bring to you affordable artifacts, home decor and gifts. As lovers of African design we have and will continue to seek to market products of the highest quality. The diversity and uniqueness of our products will attempt to fulfill a broad range of our customers interests and needs. Every year we personally travel back home to do our buying and have found sources and established relationships in Africa which will ensure that our customers have access to the finest of African craft.'); OK, EDIT ==== I just noticed that you are using the file manager. I would recommend avoiding that. It's better to use FTP, to download, save a backup copy, then upload your changed files. Just do away with the leftover osC example text / table code that I made bold....see where that takes you.
mtechama Posted July 10, 2006 Posted July 10, 2006 If you are going to edit or do any changes I would use MS Front Page or HTML editor not the File Manage itself on the website. Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.