Jump to content



Latest News: (loading..)

- - - - -

Help needed to solve an issue. Urgent!

parser error

  • Please log in to reply
2 replies to this topic

#1   mirzaafzal

mirzaafzal
  • Members
  • 2 posts
  • Real Name:Afzal Baig

Posted 06 July 2012 - 08:27 PM

Hi,

I need urgent help in resolving an issue on our website. We see an error on the website footer. This came from no where.

Please help.

Error: Parse error: syntax error, unexpected ';' in /hermes/waloraweb073/b226/moo.grantrade/includes/footer.php on line 37

Code of the file
[Code]
<?php
/*
  $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright © 2003 osCommerce

  Released under the GNU General Public License
*/

  require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
  <tr bgcolor="#CCCCCC" >
<!--<td bgcolor="#CCCCCC" class="copy" >&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</td>
<td align="right" bgcolor="#CCCCCC" class="copy">&nbsp;&nbsp;<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>&nbsp;&nbsp;</td>
  </tr>
  <tr>-->

<td colspan="3" bgcolor="#CCCCCC" align="center" class="copy">&copy;2007 </td>
  </tr>
</table>
<!--<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td align="center" class="smallText"><?php //echo FOOTER_TEXT_BODY; ?></td>
  </tr>
</table>
--><?php
  //if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<!--<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
<td align="center"><?php echo //tep_display_banner('static', $banner);?></td>
  </tr>
</table>-->
<?php
// }
?>

#2   germ

germ
  • Members
  • 13,921 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 06 July 2012 - 08:54 PM

Line 37 is:

<td align="center"><?php echo //tep_display_banner('static', $banner);?></td>

Should be:

<td align="center"><?php // echo tep_display_banner('static', $banner);?></td>
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#3   mirzaafzal

mirzaafzal
  • Members
  • 2 posts
  • Real Name:Afzal Baig

Posted 06 July 2012 - 09:20 PM

Thanks a ton JIM. The issue is resolved :)