Guest Posted June 20, 2005 Share Posted June 20, 2005 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. Quote Link to comment Share on other sites More sharing options...
OceanRanch Posted June 20, 2005 Share Posted June 20, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted June 21, 2005 Share Posted June 21, 2005 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 <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
OceanRanch Posted June 21, 2005 Share Posted June 21, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2005 Share Posted June 22, 2005 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 <{POST_SNAPBACK}> What is line 13 in database.php? Quote Link to comment Share on other sites More sharing options...
OceanRanch Posted June 22, 2005 Share Posted June 22, 2005 It is the function declaration for tep_db_connect. Tom Quote Link to comment Share on other sites More sharing options...
Guest Posted June 23, 2005 Share Posted June 23, 2005 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.