Guest Posted April 17, 2004 Posted April 17, 2004 I installed the All products contribution in an attempt to get a web site indexed by Google, or any other SE for that matter. I have searched for a fix to a problem to no avail... After the installation, the all products page works fine but there is a error at the bottom (footer) that looks like this: Parse error: parse error in /home/testxxx/public_html/cart/includes/footer.php on line 59 Any suggestios on this issue? Line 59 is the last line of the page. See the footer.php file below: <?php /* $Id: footer.php,v 1.2 2003/09/24 15:34:33 wilt 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 class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText"> <?php /* The following copyright announcement can only be appropriately modified or removed if the layout of the site theme has been modified to distinguish itself from the default osCommerce-copyrighted theme. For more information please read the following Frequently Asked Questions entry on the osCommerce support site: http://www.oscommerce.com/community.php/faq,26/q,50 Please leave this comment intact together with the following copyright announcement. */ 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 $rmtIP = $REMOTE_ADDR; ?> < tr> <td colspan="2"> <table width="100%"> <tr> <td class="smalltext" align="center" height="20" valign="middle"> <?php echo " Your IP Address is: " . $rmtIP; ?> </td> </tr> </table> < /tr> ?> Quote
peterr Posted April 17, 2004 Posted April 17, 2004 Hi, Do you have any characters after the very last line ? That is, after this ....... ?> Peter Quote
♥yesudo Posted April 17, 2004 Posted April 17, 2004 (edited) <?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>HERE <?php $rmtIP = $REMOTE_ADDR; ?> < tr> <td colspan="2"> <table width="100%"> <tr> <td class="smalltext" align="center" height="20" valign="middle"> <?php echo " Your IP Address is: " . $rmtIP; ?> </td> </tr> </table> < /tr> ?> Think you need to close off the IF statement with <?php } ?> Edited April 17, 2004 by yesudo Quote Your online success is Paramount.
♥yesudo Posted April 17, 2004 Posted April 17, 2004 Actually try: <?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 } $rmtIP = $REMOTE_ADDR; ?> < tr> <td colspan="2"> <table width="100%"> <tr> <td class="smalltext" align="center" height="20" valign="middle"> <?php echo " Your IP Address is: " . $rmtIP; ?> </td> </tr> </table> < /tr> ?> Quote Your online success is Paramount.
peterr Posted April 17, 2004 Posted April 17, 2004 Hi, Also, looking at this: <?php echo " Your IP Address is: " . $rmtIP; ?> </td> </tr> </table> < /tr> ?> The PHP syntax has already been closed/completed, just after the " . $rmtIP;" , and then you have closed it again, by the last line ?? Peter Quote
Guest Posted April 17, 2004 Posted April 17, 2004 Any suggestios on this issue? Line 59 is the last line of the page. See the footer.php file below: <?php /* $Id: footer.php,v 1.2 2003/09/24 15:34:33 wilt 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 class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText"> <?php /* The following copyright announcement can only be appropriately modified or removed if the layout of the site theme has been modified to distinguish itself from the default osCommerce-copyrighted theme. For more information please read the following Frequently Asked Questions entry on the osCommerce support site: http://www.oscommerce.com/community.php/faq,26/q,50 Please leave this comment intact together with the following copyright announcement. */ 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 $rmtIP = $REMOTE_ADDR; ?> < tr> <td colspan="2"> <table width="100%"> <tr> <td class="smalltext" align="center" height="20" valign="middle"> <?php echo " Your IP Address is: " . $rmtIP; ?> </td> </tr> </table> < /tr> ?> At the very bottom replace: ?> with: <?php } ?> Hope this helps. Quote
Guest Posted April 17, 2004 Posted April 17, 2004 Thanks everyone I will give it a try tomorrow when I get back to the home pc. Quote
Guest Posted April 18, 2004 Posted April 18, 2004 That worked :D Thanks again! Thanks for the help...now to get the spiders index the products pages. I created a link to the "All Products" page in the footer, I read that may help. We will see. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.