Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error please help?!


thorin462

Recommended Posts

Dear Forum,

 

I have been running a oscommerce site for years without any problems recently when trying to install ultimate seo the following error appears when I try to eneter the web page:

 

Fatal error: Cannot redeclare tep_set_banner_status() in /home/mobibobo/public_html/includes/functions/banner.php on line 15

 

Admin section works fine. Please can someone help me restore my site I cannot find any info on what could be causing this error.

 

Also when I restore an old database from phpmyadmin or from admin in oscommerce I still get this error message.

Link to comment
Share on other sites

Here is line 15.

 

// Sets the status of a banner

15. 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;

}

}

Link to comment
Share on other sites

Dear Forum,

 

I have been running a oscommerce site for years without any problems recently when trying to install ultimate seo the following error appears when I try to eneter the web page:

 

Fatal error: Cannot redeclare tep_set_banner_status() in /home/mobibobo/public_html/includes/functions/banner.php on line 15

 

Admin section works fine. Please can someone help me restore my site I cannot find any info on what could be causing this error.

 

Also when I restore an old database from phpmyadmin or from admin in oscommerce I still get this error message.

What is the URL to your site?

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

Yeah, same happens here. Sometimes it's just a cache problem but in your case I suspect that you made an error in the coding when installing the SEO add-on. I would go back over the instructions carefully and verify each step.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

Still have the same problem after checking each step. I do not need ultimate SEO is there a way I can restore the old files?

Maybe upload them again? I see that the old seo version I had had an uninstall option but this one dose not.

Link to comment
Share on other sites

I removed the entire site and reinstalled the database and all, after the install I used an older database and imported it through myphpAdmin.

The site is looking back to its old self again now after adding old files, pics and boxes.

 

Tried to restore before the uninstall but it did not work.

 

I suspect there will be a lot more work to do since its an old backup but I learned much through this experience.

 

Thanks for all the help!

Cheers

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...