Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Database.php error. Help Needed


Guest

Recommended Posts

Posted

Hi, all.

 

In desperate need of some help. All of a sudden I cannot access the admin side of categories/products. To be clear, when I click on categories/products on the admin side of the website, I get the following message....

 

"Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/sites/garlandsaudio.co.uk/public_html/sales/admin/includes/functions/database.php:13) in /home/sites/garlandsaudio.co.uk/public_html/sales/admin/includes/functions/database.php on line 13"

 

Besides this, everyting else on the website seems fine. Does anyone know what this means or how I can fix it??

 

Thanks in advance.

 

 

dandydandy

Posted

John

 

This means that the function tep_db_connect is in the "generated" code twice, once in /admin/includes/functions/database.php starting at line 13

 

You have probably added a contribution which has the function in it some where. You can either rename that one to tep_db_connectxxx and test your site again.

 

Or you can search your site for "function tep_db_connect" and delete one that is not needed...

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
John

 

This means that the function tep_db_connect is in the "generated" code twice, once in /admin/includes/functions/database.php starting at line 13

 

You have probably added a contribution which has the function in it some where. You can either rename that one to tep_db_connectxxx and test your site again.

 

Or you can search your site for "function tep_db_connect" and delete one that is not needed...

 

 

Geoffrey, I tried what you suggested by renaming the tep_db_connect to tep_db_connectxxx but that just crashed the whole of the admin side. No matter what I clicked on the admin side, this message was displayed

 

"Fatal error: Call to undefined function: tep_db_connect() in /home/sites/garlandsaudio.co.uk/public_html/sales/admin/includes/application_top.php on line 61"

 

Any ideas???

 

Thanks

Posted

Really do need help with this still cant get past the original database problem.

 

Please, can anyone help?????

 

Thanks

Posted
Really do need help with this still cant get past the original database problem.

 

Please, can anyone help?????

 

Thanks

My guess would be that you have copied database.php to the wrong location or you have some backup file in the functions directory.

Archived

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

×
×
  • Create New...