judoka Posted May 30, 2005 Share Posted May 30, 2005 Hi everyone, I am working on oscMax v1.7 on my local machine and I have just notice a problem when I click on any category that has sub-categories in it. When I click on the main category I get the following message: Fatal error: Cannot redeclare tep_db_connect() (previously declared in c:\program files\easyphp1-8\www\catalog\includes\functions\database.php:13) in c:\program files\easyphp1-8\www\catalog\includes\functions\database.php on line 13 I looked at line 13 and this is what it reads: function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { What I am trying to do is to have the sub-category pic display on the main page when I click on its main category link. When I click on the sub-category or categories that have no sub-categories everything work ok. I am only getting the error message when I click on the main categories with sub-categories. I can cut and paste and I can do minor coding by trial and error but I have no idea what needs to be fix in the above line. Could someone tell me what is wrong with the above line and how can I fix it? Thanks for the help guys, Jose Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.