InNeedOfSeriousHelp Posted September 11, 2005 Share Posted September 11, 2005 I have an error that I can't fix. parse error in /var/www/html/oscommerce/includes/languages/english/index.php on line 32 Can someone please send me the original oscommerce index.php file? I am hoping to just start again from this file to remove the error. Thanks. Link to comment Share on other sites More sharing options...
♥yesudo Posted September 11, 2005 Share Posted September 11, 2005 Grab it here: http://www.oscommerce.com/solutions/downloads Your online success is Paramount. Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted September 11, 2005 Share Posted September 11, 2005 Grab it here: http://www.oscommerce.com/solutions/downloads <{POST_SNAPBACK}> most probably though, you would just have to fix a quote error, that you have forgotten to add the escape slash to like what\'s new? :-) 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...
InNeedOfSeriousHelp Posted September 11, 2005 Author Share Posted September 11, 2005 This was my first thought, however, I don't know what's wrong. If you could run your eye over it, I would be forever in your debt!!! Here is my index.php file <?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('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', 'Great Range at a Great Price'); 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', 'QUEENSLAND BEAD COMPANY'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> most probably though, you would just have to fix a quote error, that you have forgotten to add the escape slash to like what\'s new? <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted September 11, 2005 Share Posted September 11, 2005 these 2 are incorrect: define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); should be define('TEXT_BUY', 'Buy 1 '); define('TEXT_NOW', ' now'); :-) 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...
InNeedOfSeriousHelp Posted September 11, 2005 Author Share Posted September 11, 2005 Thanks Monica, I have changed these lines, so it now reads: define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', ' now'); However, the error still exists. The only difference now is that the error is on line 28, not 32 as before. Any other suggestions? these 2 are incorrect: define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', '' now'); should be define('TEXT_BUY', 'Buy 1 '); define('TEXT_NOW', ' now'); <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted September 11, 2005 Share Posted September 11, 2005 Thanks Monica, I have changed these lines, so it now reads: define('TEXT_BUY', 'Buy 1 ''); define('TEXT_NOW', ' now'); However, the error still exists. The only difference now is that the error is on line 28, not 32 as before. Any other suggestions? <{POST_SNAPBACK}> why didn't you change both lines, but only 1? :-) 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...
InNeedOfSeriousHelp Posted September 11, 2005 Author Share Posted September 11, 2005 Okay, I don't know what happened, but I'm sure I changed both lines. Anyway, it is now definitely in as: define('TEXT_BUY', 'Buy 1 '); define('TEXT_NOW', ' now'); But the error still exists on line 28. why didn't you change both lines, but only 1? <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted September 11, 2005 Share Posted September 11, 2005 Okay, I don't know what happened, but I'm sure I changed both lines. Anyway, it is now definitely in as: define('TEXT_BUY', 'Buy 1 '); define('TEXT_NOW', ' now'); But the error still exists on line 28. <{POST_SNAPBACK}> post the error please ... the file looks fine now in my php editor which changes the color for syntax check :-) :-) 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...
InNeedOfSeriousHelp Posted September 11, 2005 Author Share Posted September 11, 2005 Parse error: parse error in /var/www/html/oscommerce/includes/languages/english/index.php on line 28 post the error please ... the file looks fine now in my php editor which changes the color for syntax check :-) <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted September 11, 2005 Share Posted September 11, 2005 Parse error: parse error in /var/www/html/oscommerce/includes/languages/english/index.php on line 28 <{POST_SNAPBACK}> sorry, no clue then. I'd double check the file got uploaded into the correct folder ... :-) 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...
InNeedOfSeriousHelp Posted September 11, 2005 Author Share Posted September 11, 2005 Thanks anyway. 12:30am here, so I'm off to bed. I will tackle the issue again tomorrow. sorry, no clue then. I'd double check the file got uploaded into the correct folder ... <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.