Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot redeclare tep_db_connect()


Guest

Recommended Posts

Hi,

 

Can't get into the admin console. The following error is displayed:

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in E:\hshome\brew4u\wineshop.ie\admin\includes\functions\database.php:13) in E:\hshome\brew4u\wineshop.ie\admin\includes\functions\database.php on line 13

 

 

If I comment out the definition in database.php, it says that it is not defined. Another forum article says to upload the relavent files into the languages secton. I've done this but it still doesn' work.

 

Is there any debug option which will show where it is trying to declare the class twice ?

 

Any help folks would be great.

 

Stephen.

Link to comment
Share on other sites

:D thanks Vger ! Getting used to your very prompt responses. I have it resolved. I started by editing application_top.php and noticed that I needed to add some missing classes but got knocked over with the above error. I finally reset oscommerce and performed a restore. Drastic, I know but it's sorted.

 

Hurray for backups :thumbsup:

 

Thanks for all of your help !

 

S.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...