Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Fatal Error a Footer


Recommended Posts

Hello, i am facing a problem on my OSC site an i need some help.


At the home page (http://britchesnbows.net/shop/index.php) and at many of the sub pages, i get the following Warning Message


Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/britches/public_html/shop/includes/functions/database.php:13) in /home/britches/public_html/shop/includes/functions/database.php on line 13


This appeared when i turned off many boxes.


Please help.


Bundle of Thanks in Advance

Link to comment
Share on other sites



Did you change the name/password etc. of your database?


Here is the line of code that you mentioned in error...

function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {



define('PROJECTS', 'Something that goes on forever!');

Link to comment
Share on other sites

Thanks for the quick response...


No i didnt change any passwords... it only shows error there...


is there any way to hide it ??? i mean to comment out any line??? because the site is working fine...

Link to comment
Share on other sites

Have you read This?

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching


Want to post? Read this first:

osCommerce for dummies

Topic name etiquette



Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

Yes, i had checked it... but still no good... i still face the problem...

Try reinstalling your boxes and then dont delete them but comment them out

Inside the column_right.php as some of these boxes use the database, example the best sellers,whats new, and stuff like that.

Or you could install a fresh copy of column_right.php inside your shop/includes/ and then try commenting them out :o


I think I know what Im talking about.


Link to comment
Share on other sites


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

  • Create New...