Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

database.php problem - Cannot redeclare tep_db_con


Recommended Posts

Hello Guys,


I've got a bit problem. I set up OsCommerce 2.2 MS2, everything was working, then came this.


The site reach the database, I can regiser, log in, broswe, etc, but when I try to check my cart, so the shopping_cart.php, then comes the following error message:


Fatal error: Cannot redeclare tep_db_connect() in /home/data/www/zenebolt.fpn.hu/includes/functions/database.php on line 13


I don't know why is it, cause as far as I know the database.php 13rd line gets the data from configuration.php. As I said, every other part of the site is working fine, except that instead of the prize the site always shows "0". I don't know if it has any connection, think no, but since I can't solve this problem I can imagine anything:-)))


Please, help, I really don't know what to do.

Oh, yes, and I haven't ever edited the database.php, so it is the original.


I tried to reinstall the site, but it is still the same.


best regards and waiting for the answer:


Link to comment
Share on other sites

No, I haven't , but I found th sollution, I uploaded all the language files again, and it is working fine.


Can you help in case of the "0 prize"?

Link to comment
Share on other sites

That sounds like you may have overwritting one of the language files with a code file which could cause the problem as well. Just an FYI.



Apathy is a dominant gene - mutate.

Link to comment
Share on other sites


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

  • Create New...