Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

atal error: Call to a member function on a non-object in /home/muccelmi/public_html/muccelmic/includes/footer.php on line 18


Guest

Recommended Posts

I've installed coppermine and when I enter the gallery I have this error:

 

atal error: Call to a member function on a non-object in /home/muccelmi/public_html/muccelmic/includes/footer.php on line 18

 

This is my footer.php file:

 

<?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 class="footerNavigation">

<td class="footerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="footerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="footerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="footerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="footerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="footerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td></tr>

</table>

 

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_SHORT); ?>  </td>

<td align="right" class="footer">  

<a href="allcategories.php"><font face="Arial, Helvetica, sans-serif" size="2" color="#ffffff" ><strong>Toate categoriile </strong></font>

<a href="allprods.php"><font face="Arial, Helvetica, sans-serif" size="2" color="#ffffff"><strong>Toate produsele</strong> </font>

  </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

}

?>

 

<?php

///////////////////

// [0001] WebMakers.com Added: Center Shop

// This goes at the very end of the footer after all the tables

///////////////////

 

if ( CENTER_SHOP_ON == 'on' ) {

 

///////////////////

// [0001] close table used to center

///////////////////

?>

</td></tr>

</table>

<?php

if ( CENTER_SHOP_BACKGROUND_ON == 'on' ) {

 

///////////////////

// [0001] Add color to bottom of screen for large displays - needed especially on notebooks that run at 1600x1200

// close table used for outer bgcolor around the shop

///////////////////

?>

 

<!-- deleting the Spacer in the footer without the default background-color -->

<!-- </td></tr>

<tr><td height="150"> </td></tr>

</table> -->

 

<?php

}

}

///////////////////

// [0001] EOF: WebMakers.com Added: Center Shop

///////////////////

///////////////////

 

I've looked at it but not being an expert ...:0 I don't have a clue why the error is there!

 

Thanks in advance for your help!

Link to comment
Share on other sites

Your footer is calling osCommerce classes and functions - for this reason any file that includes the footer must have the following before any of these are referenced:

 

  require('includes/application_top.php');

 

Matti

Link to comment
Share on other sites

Hmmm...Not sure if I got it right: if I go to www.mysite.com/gallery.php and it includes footer.php, in the begining it should have

require('includes/application_top.php'); ? And if it does already?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...