drumcentral Posted March 20, 2007 Posted March 20, 2007 I wonder if anyone can point me in the right direction to repair this annoying error. When I go to my admin page I get this message: Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/sites/ drumcentral .co.uk/public_html/admin/includes/functions/database.php:13) in /home/sites/ drumcentral .co.uk/public_html/admin/includes/functions/database.php on line 13 I can access all the other files and sections in the admin section just by going to, for example, admin/categories.php I know it's a minor problem but not easy to explain to other admin users who don't know how to get around it. The actual line 13 in database.php is: function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; I have installed a number of modifications. Any help gratefully received! Kenny. --------------------------------------------------------------------------------------------------
Bushmaster Posted March 20, 2007 Posted March 20, 2007 Look for that same line of code below that one in the same file. You have it entered twice . It's telling you it can't do the same thing that is done on line 13.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.