Guest Posted August 11, 2006 Share Posted August 11, 2006 Please forgive me. I have not spent hours but days reading various threads on "Parse Errors" but nothing has helped me and I am so desperate I am about to throw my computer out of the door. I have been trying to edit the main page of my catalogue and keep getting parse errors. So, I tried something different. Reloaded the original file "/catalog/includes/languages/english/index.php and got everything back to normal. I opened the file and saved it withouth making any changes whatsoever and this is what I get: "Parse error: parse error, unexpected '?' in /home/down2ear/public_html/osCommerce/catalog/includes/languages/english/index.php on line 13" and I haven't even changed anything. So I tried a few other files which I need to edit as well. They all give me different parse errors in different places. I am not an IT fundi (I actually barely understand the language at all) so I don't have a clue how to go about fixing these errors - if I don't change anything how do I know where to look for a fault. I tried downloading a PHP editing package which was recommended on the Forum but because I don't have a clue how to use it, it is actually quite useless. I have even tried some of the files on the contributions site, but a lot of them require you make changes in the original file, which does not help if the original file gives me errors. Please, please, please help me - my whole site is basically set up, I just need to take out the default info on the main page and change the colouring. Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 11, 2006 Share Posted August 11, 2006 show your file! also, are you using the latest version of osC? You're not editing your files through osC file manager if you have an older version? :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Guest Posted August 11, 2006 Share Posted August 11, 2006 Hi Monika Thank you so much for responding. I'm currently using osCommerce 2.2-MS2. I have been editing the files through the File Manager but not through osC File Manager. If I try to edit anything through osC File Manager it gives me a permission error and I'm not sure how to change the setting. Sorry - I know I'm being a bit of a pain here but I am really stupid when it comes to these things and I didn't realise that it made a difference. How do I change the permissions on the files so that I can edit them through osC File Manager? Link to comment Share on other sites More sharing options...
Guest Posted August 11, 2006 Share Posted August 11, 2006 I have managed to work out how to change the permissions on the file and have deleted the default text in the main page. I now get this error: Parse error: parse error, unexpected T_STRING in /home/down2ear/public_html/osCommerce/catalog/includes/languages/english/index.php on line 19 This is what my file currently looks like: <?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', 'new text to be added once I have worked this one out'); 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'); } ?> Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 11, 2006 Share Posted August 11, 2006 define('HEADING_TITLE', 'What's New Here?'); should be define('HEADING_TITLE', 'What\'s New Here?'); :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Guest Posted August 11, 2006 Share Posted August 11, 2006 Dear Monika Thank you very much for your help. I corrected that apostrope and found another one which I changed. Then it gave me an encapsed string error and I actually managed to find the error and fixed it. My main page is working. Sometimes we dummies just need to know what to look for, so when I ask a dumn question again, just point me in the right direction again. Once again, thanks a ton. Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 11, 2006 Share Posted August 11, 2006 if you're not using the Nov13 version of osC MS2.2 then by no way should you use the inbuilt file manager - it creates parse errors just like those you got. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.