Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Footer disappeared!


Comesticage

Recommended Posts

Hi all,

 

I did an add on, it was related to adding a review tab onto my website and the product info page.

 

It was successful.

 

But when i reload the page, the footer on all my pages were gone!

 

Some remedy steps i took

 

1) Reverse the changes i did when i was doing the add-on -------------> no help. Still no footer

2) I got desperate and restore all the files in my server using a backup 1 week ago -------------> no help. Still no footer.

 

My website is at http://www.oxytarm-ap.com

 

If anyone needs to see the index.php, footer.php or template_bottom.php file. i can paste the coding here.

 

SOS!

 

Regards,

 

CosmetiCage

Link to comment
Share on other sites

@@multimixer

 

Sorry, might be because i was restoring from the latest backup that you did not see the application_top.php

 

but all my files are found in the dirn

 

includes/

 

1) application_top.php

2) application_bottom.php

3) template_bottom.php

4) template_top.php

5) footer.php

6) header.php

Where should i start to try to find out where

Link to comment
Share on other sites

So upset with myself. How did i make the footer totally missing? tried all methods to resolve. deleting all the files and restoring it from different backups.. tried for 5 - 6 hours, can't get back the footer.. turn to forum. and waiting for some kind soul to enlighten me..

Link to comment
Share on other sites

Generally when the footer disappears you should look for errors prior to it being called, many times the error will stop the parsing of the page and display only part of the page and leave out the rest.

 

 

If you added in something, generally I would look at the contribution and what parts it touches in the file and then see which would be called in all pages, and be out put towards the end of the page (boxes are a good start to look).

 

 

cheers

Peter McGrath

-----------------------------

See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation

Link to comment
Share on other sites

Hi,

 

I agree with you. but as i traced back my steps. The add ons do not touch the footer.php. I traced back further to my other add-ons. nothing..

 

then i went a further step by restoring all my back ups a week ago... still the footer is not around. this is puzzling and sad..

Link to comment
Share on other sites

@@cannuck1964I took a harder look at my footer.php especially the part that you mentioned "Generally when the footer disappears you should look for errors prior to it being called, many times the error will stop the parsing of the page and display only part of the page and leave out the rest."

<?php
/*
 $Id$[/b]
[b]  osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com[/b]
[b]  Copyright (c) 2010 osCommerce[/b]
[b]  Released under the GNU General Public License
*/[/b]
[b]  require(DIR_WS_INCLUDES . 'counter.php');
?>[/b]
[b]<div class="grid_24 footer">

 <p align="center">
 <?php //JOEY: remove default footer text
 //echo FOOTER_TEXT_BODY; ?>

 </p>

</div>[/b]
[b]<?php
 if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>[/b]
[b]<div class="grid_24" style="text-align: center; padding-bottom: 20px;">
 <?php //JOEY: remove default banner
 //echo tep_display_banner('static', $banner); ?>

 <div>
 <!--div class="ui-widget infoBoxContainer"-->
  <!--div class="ui-widget-header infoBoxHeading"> 

  </div--> 
  <!--div class="ui-widget-content infoBoxContents" style="text-align: center;"-->
   <div style="text-align: center;">
<div ALIGN="center">
  </div>

 <a class="menuLink" href="http://www.facebook.com/Oxytarm"><b><div align="centre">
   <p><img src="images/social_bookmarks/facebook.png" border="0" title="Share on Facebook" alt="Share on Facebook" />
   </p>
   <p><a class="menuLink" href="/shop/catalog/ordering.php">| How to Order |<a class="menuLink" href="/shop/catalog/TermsAndConditions.php"> Terms & Conditions | <a class="menuLink" href="/shop/catalog/ShopLocations.php">Shop Locations |</p>
   </div></b>
 </div></b></div>[/b]
[b]<?php
 }
?>[/b]
[b]<script type="text/javascript">
$('.productListTable tr:nth-child(even)').addClass('alt');
</script>
<script type="text/javascript">[/b]
[b]  var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-32647962-1']);
 _gaq.push(['_trackPageview']);[/b]
[b]  (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();[/b]
[b]</script>
</body>
</html>

 

TO

 

<?php
/*
 $Id$[/b]
[b]  osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com[/b]
[b]  Copyright (c) 2010 osCommerce[/b]
[b]  Released under the GNU General Public License
*/[/b]
[b]  require(DIR_WS_INCLUDES . 'counter.php');
?>[/b]
[b]<div class="grid_24 footer">

 <p align="center">
 <?php //JOEY: remove default footer text
 //echo FOOTER_TEXT_BODY; ?>

 </p>

</div>
<div class="grid_24" style="text-align: center; padding-bottom: 20px;">
<div>
 <!--div class="ui-widget infoBoxContainer"-->
   <!--div class="ui-widget-header infoBoxHeading"> 

  </div--> 
   <!--div class="ui-widget-content infoBoxContents" style="text-align: center;"-->
 <div style="text-align: center;">
<div ALIGN="center">
  </div>

 <a class="menuLink" href="http://www.facebook.com/Oxytarm"><b><div align="centre">
   <p><img src="images/social_bookmarks/facebook.png" border="0" title="Share on Facebook" alt="Share on Facebook" />
   </p>
   <p><a class="menuLink" href="/shop/catalog/ordering.php">| How to Order |<a class="menuLink" href="/shop/catalog/TermsAndConditions.php"> Terms & Conditions | <a class="menuLink" href="/shop/catalog/ShopLocations.php">Shop Locations |</p>
   </div></b>
 </div></b></div>
<script type="text/javascript">
$('.productListTable tr:nth-child(even)').addClass('alt');
</script>
<script type="text/javascript">[/b]
[b]  var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-32647962-1']);
 _gaq.push(['_trackPageview']);[/b]
[b]  (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();[/b]
[b]</script>
</body>
</html>

 

It worked! Thanks! Now i can go to bed!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...