Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Code Disappears


joseandrespr

Recommended Posts

I am having an issue with disappearing code. The footer code appears to be fine but when opening certain pages the footer looses code and starts to display incorrectly. I must advise that I have highly modified this template so there could be a variety of things I might have done wrong, but after weeks of trying to find a solution and not being able to I am asking the community for help. The error happens mostly in the product_info.php pages. The web address to take a look at this is www.vesselwebdesign.com/store/catalog/index.php. And here is the code I am mostly having trouble with.

 

original code from footer.php:

 

<?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="765" height=100% cellspacing="0" cellpadding="0" bgcolor="#2c2c2c">

<table border="0" width="765" height=100% cellspacing="0" cellpadding="0" bgcolor="#2c2c2c">

<tr>

<td width="765" rowspan="1" class="footer" valign="top"><div style="height:20px; border-top:1px solid #ffffff; border-bottom:0px solid #ffffff; padding-left:0px; padding-top:10px; ">

<div align="center"><a class="bottom" href="<?php echo tep_href_link(FILENAME_ABOUT_US) ?>">Company</a> | <a class="bottom" href="<?php echo tep_href_link(FILENAME_PRODUCTS_NEW) ?>">New products</a> | <a class="bottom" href="<?php echo tep_href_link(FILENAME_SPECIALS) ?>">Specials</a> | <a class="bottom" href="<?php echo tep_href_link(FILENAME_CONTACT_US) ?>">Contacts</a> | <a class="bottom" href="<?php echo tep_href_link(FILENAME_REVIEWS) ?>">Reviews</a></div>

</div></td>

</tr>

</table>

<table border="0" width="765" cellspacing="0" cellpadding="0" bgcolor="#000000">

<tr>

<td width="339" bgcolor="#2c2c2c" height="31" align="left" valign="top" ><div style="height:31px; border-top:1px solid #a1a1a1; padding-left:10px; padding-top:5px; "><img src="images/pay.jpg" width="217" height="21"></div></td>

<td align="right" height="31" bgcolor="#2c2c2c" class="smallText" style="color:#000000;"><div style="height:31px; border-top:1px solid #a1a1a1; padding-right:10px; padding-top:5px; "><?php echo FOOTER_TEXT_BODY; ?></div></td>

 

</tr></table>

 

 

 

</center>

 

 

 

And this is the code I see when I view the source on the faulty pages:

 

<table border="0" width="765" height=100% cellspacing="0" cellpadding="0" bgcolor="#2c2c2c">

<table border="0" width="765" height=100% cellspacing="0" cellpadding="0" bgcolor="#2c2c2c">

 

<tr>

<td width="765" rowspan="1" class="footer" valign="top"><div style="height:20px; border-top:1px solid #ffffff; border-bottom:0px solid #ffffff; padding-left:0px; padding-top:10px; ">

<div align="center"><a class="bottom" href="http://www.vesselwebdesign.com/store/catalog/about_us.php?osCsid=a5f35ebf10b5448a01bfd3e3ef8b8676">Company</a> | <a class="bottom" href="http://www.vesselwebdesign.com/store/catalog/products_new.php?osCsid=a5f35ebf10b5448a01bfd3e3ef8b8676">New products</a> | <a class="bottom" href="http://www.vesselwebdesign.com/store/catalog/specials.php?osCsid=a5f35ebf10b5448a01bfd3e3ef8b8676">Specials</a> | <a class="bottom" href="http://www.vesselwebdesign.com/store/catalog/contact_us.php?osCsid=a5f35ebf10b5448a01bfd3e3ef8b8676">Contacts</a> | <a class="bottom" href="http://www.vesselwebdesign.com/store/catalog/reviews.php?osCsid=a5f35ebf10b5448a01bfd3e3ef8b8676">Reviews</a></div>

 

</div></td>

</tr>

</table>

<table border="0" width="765" cellspacing="0" cellpadding="0" bgcolor="#000000">

<tr>

<td width="339" bgcolor="#2c2c2c" height="31" align="left" valign="top" ><div style="height:31px; border-top:1px solid #a1a1a1; padding-left:10px; padding-top:5px; "><img src="images/pay.jpg" width="217" height="21"></div></td>

<td2c" class="smallText" style="color:#000000;"><div style="height:31px; border-top:1px solid #a1a1a1; padding-right:10px; padding-top:5px; ">Copyright © 2007 <a href="http://www.vesselwebdesign.com/store/catalog/index.php?osCsid=a5f35ebf10b5448a01bfd3e3ef8b8676">Vessel Design</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a></div></td>

 

</tr></table>

 

 

 

</center><!-- footer_eof //-->

<br>

</body>

</html>

 

I have highlighted the code that is disappearing in this case but if I make changes to the footer code this can change and different code will disappear. I am only including the footer part of the code that is displaying on the view source of the product_info.php pages.

 

Any help will be greatly appreciated. If additional info is needed let me know as this is the first time I post and might have left out important info.

 

Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...