Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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>

 

?>

Posted (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 by yesudo

Your online success is Paramount.

Posted

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>

 

?>

Your online success is Paramount.

Posted

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

Posted
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.

Posted

Thanks everyone

 

I will give it a try tomorrow when I get back to the home pc.

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...