supptoyou Posted May 3, 2010 Share Posted May 3, 2010 Hey guys, sorry to bother you with this...I was stupidly editing my index file without having saved a back up... now when I try to load I get this error: "Parse error: syntax error, unexpected '<' in /homepages/3/d271147844/htdocs/index.php on line 15" the error is somewhere amongst this text: define('TEXT_MAIN', 'Coming soon',<table border="0" width="100%" cellspacing="5" cellpadding="2"><td class="main" valign="top">' . tep_image (DIR_WS_IMAGES . 'default/1.gif') . <td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . <td class="main" valign="top"></td>'</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"></td></tr></table>''); Do you see an error here? Could you possibly copy/paste me the right bit from your index.php file please? If I could get a copy of this (without re-installing oscommerce etc) I'd be most grateful. Thanks, Alex Link to comment Share on other sites More sharing options...
danop Posted May 3, 2010 Share Posted May 3, 2010 Hey guys, sorry to bother you with this...I was stupidly editing my index file without having saved a back up... now when I try to load I get this error: "Parse error: syntax error, unexpected '<' in /homepages/3/d271147844/htdocs/index.php on line 15" the error is somewhere amongst this text: Do you see an error here? Could you possibly copy/paste me the right bit from your index.php file please? If I could get a copy of this (without re-installing oscommerce etc) I'd be most grateful. Thanks, Alex Which line is line 15? Dan Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2010 Share Posted May 3, 2010 According to the code you posted, it should be define('TEXT_MAIN', 'Coming soon <table border="0" width="100%" cellspacing="5" cellpadding="2"><td class="main" valign="top">' . tep_image (DIR_WS_IMAGES . 'default/1.gif') . '<td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '<td class="main" valign="top"></td></td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"></td></tr></table>'); However, your table structure is all messed up. If you are looking to have all 3 images in the same row, then it should be define('TEXT_MAIN', 'Coming soon <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">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td></tr></table>'); Link to comment Share on other sites More sharing options...
supptoyou Posted May 3, 2010 Author Share Posted May 3, 2010 hey guys, thanks for the responses.... Danop - I'm not sure which is 15 to be honest, I'm editing in notepad at home and line 15 changes in there.... bktrain - thanks for the code - I copied your code in to replace the whole TEXT_MAIN bit but now I get a new error: "Fatal error: Call to undefined function: tep_image() in /homepages/3/d271147844/htdocs/index.php on line 16" could you possibly give me the original code for this part, or your current code? I'm just after something that works and then I can edit it later! Thanks Link to comment Share on other sites More sharing options...
danop Posted May 3, 2010 Share Posted May 3, 2010 I searched my code and couldn't find anything similar in mine. Sorry! Dan Link to comment Share on other sites More sharing options...
supptoyou Posted May 3, 2010 Author Share Posted May 3, 2010 I searched my code and couldn't find anything similar in mine. Sorry! Dan hey Dan, could you post all of your index.php by any chance? I'm just after the index file from the root folder Thanks, Alex Link to comment Share on other sites More sharing options...
supptoyou Posted May 3, 2010 Author Share Posted May 3, 2010 hey Dan, could you post all of your index.php by any chance? I'm just after the index file from the root folder Thanks, Alex hey thanks for all the help guys but I fixed it, I was confused between 2 different index.php files - all sorted now, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.