Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Strange errors after installing contribution


Guest

Recommended Posts

Posted

I installed the Ultimate SEO URLs contribution but it wouldnt work for me so I replaced the changed files with the ones I backed up before installing it.

 

I am now getting this error:

 

Fatal error: Cannot redeclare tep_set_banner_status() (previously declared in /home/jean1212/public_html/includes/functions/general.php:694) in /home/jean1212/public_html/includes/functions/banner.php on line 15

 

I am hopeless at PHP but I think it is saying something is missing from General.php

 

I have searched the file and can see no references to banners within it.

 

Banner.php contains this string of code at line 15 onwards

 

// Sets the status of a banner
 function tep_set_banner_status($banners_id, $status) {
   if ($status == '1') {
     return tep_db_query("update " . TABLE_BANNERS . " set status = '1', date_status_change = now(), date_scheduled = NULL where banners_id = '" . (int)$banners_id . "'");
   } elseif ($status == '0') {
     return tep_db_query("update " . TABLE_BANNERS . " set status = '0', date_status_change = now() where banners_id = '" . (int)$banners_id . "'");
   } else {
     return -1;
   }
 }

 

What do I need to insert in general to remove this error? Can anybody help me out?

 

 

Many thanks

 

Mogsta

Posted

why not restore an original general.php as well as other files qhich were changed

  • 3 weeks later...
Posted

Fatal error: Cannot redeclare tep_set_banner_status() (previously declared in /catalog/includes/functions/general.php:694) in /catalog/includes/functions/banner.php on line 15

 

Received the same error after installing a USPS contribution.

 

Resored all the original files but my store is cooked... only the above fatal error.

Everything on the admin side is fine. Please help.

Posted
Fatal error: Cannot redeclare tep_set_banner_status() (previously declared in /catalog/includes/functions/general.php:694) in /catalog/includes/functions/banner.php on line 15

 

Received the same error after installing a USPS contribution. 

 

Resored all the original files but my store is cooked... only the above fatal error.

Everything on the admin side is fine.  Please help.

 

 

I reinstalled general PHp from my back up. I had to add a few things for previos contributions I installed but it is functioning now.

 

regards

 

Mogsta

Archived

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

×
×
  • Create New...