Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fatal error


Guest

Recommended Posts

Could someone tell me how to fix this error. I'm not sure how it happened and I can't seem to get it go away.

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /.../httpdocs/oscommerce-2.2ms2/catalog/admin/includes/functions/database.php:13) in /.../httpdocs/oscommerce-2.2ms2/catalog/admin/includes/functions/database.php on line 13

 

 

Thanks.

Link to comment
Share on other sites

This error is normally caused by application_top.php being called twice because of a misplaced file. See the following knowledgebase article.

 

http://www.oscommerce.info/kb/Catalog_Guid...on_Problems/198

 

HTH

Tom

 

 

I replaced the database.php and the application_top file with the original and it didn't seem to do anything different.

 

I cannot figure this out. What is line 13 in the database.php file?

 

Jacqueline

Link to comment
Share on other sites

Neither of those 2 files are the problem. It's some other file that calls application_top which in turn calls database.php which in turn on line 13 defines the function (which is duplicated when called the second time).

 

You will have to find out what file (perhaps a language file etc.) that you placed in the wrong folder that is causing the duplication.

 

Tom

Link to comment
Share on other sites

Neither of those 2 files are the problem. It's some other file that calls application_top which in turn calls database.php which in turn on line 13 defines the function (which is duplicated when called the second time).

 

You will have to find out what file (perhaps a language file etc.) that you placed in the wrong folder that is causing the duplication.

 

Tom

 

What is line 13 in database.php?

Link to comment
Share on other sites

I am new to this stuff and I am now very confused on how I am going to fix this. Can you give me any suggestions to which file or where I should look and for what. I went into my languages file and replaced it. I can get into my main screen for the admin but the only thing on the screen is the header and then the error message. It also still shows, and I can access the online store, etc.

 

Thanks,

 

Jacqueline.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...