Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can I delete "Auto activate and expire banners"?


lba

Recommended Posts

I get this error on the catalog:

Fatal error: Call to undefined function: tep_activate_banners() in

/home/virtual/site214/fst/var/www/html/catalog/includes/application_top.php on line 438

 

But it goes away when I delete the following from application_top.php:

// auto activate and expire banners

require(DIR_WS_FUNCTIONS . 'banner.php');

tep_activate_banners();

tep_expire_banners();

 

Is it ok to remove that code? What did I disable?

 

I also get this error:

Fatal error: Call to undefined function: tep_banner_exists()

in/home/virtual/site214/fst/var/www/html/catalog/includes/footer.php on line 49

 

And it goes away when I delete the following from footer.php:

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

}

?>

 

Again, is it ok to remove that code? What did I disable?

 

Thanks,

lba

Link to comment
Share on other sites

For the first error, you might what to double check and see if you have the complete file for banner.php, which is under catalog/includes/functions. In that .php file, the two functions [tep_activate_banners() & tep_expire_banners()] are defined.

 

Since you take out the lines in application_top.php which deal with banner, which you means probably your index.php page won't load banners for you, that could probably cause the second error.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...