Alexandero Posted April 28, 2008 Posted April 28, 2008 Hi could anyone please tell me the meaning of this and how to fix it? Fatal error: Cannot redeclare tep_db_connect() (previously declared in d:\www\domain.com\htdocs\admin\includes\functions\database.php:13) in d:\www\domain.com\htdocs\admin\includes\functions\database.php on line 25 Line 25 here is in red: if ($$link) mysql_select_db($database); return $$link; } function tep_db_close($link = 'db_link') { global $$link; Regards, Alex
arietis Posted April 29, 2008 Posted April 29, 2008 Fatal error: Cannot redeclare tep_db_connect() (previously declared in d:\www\domain.com\htdocs\admin\includes\functions\database.php:13) in d:\www\domain.com\htdocs\admin\includes\functions\database.php on line 25[/code] somehow you've told your code to include('admin/includes/functions/database.php') *twice*. the second include is causing the error because tep_db_connect() was already defined the first time. obviously, you've been making changes. probably adding include() statements to one or more files. look at what you've done and see if one of the included files also includes database.php. it may not be obvious at first, but it'll be there. just go through all of the included files...and the files that they include.
♥geoffreywalton Posted April 29, 2008 Posted April 29, 2008 Would this be of use? http://www.oscommerce.info/kb/osCommerce/G...on_Problems/198 Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
♥FWR Media Posted April 29, 2008 Posted April 29, 2008 It is because you have tried to amalgamate my script inside packing_show1.php and my script includes an include for application_top. I replied to your email but I'm not going to sit around waiting for you again. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Alexandero Posted April 29, 2008 Author Posted April 29, 2008 FWR Robert, you fixed it, you are great man.. Thank you very much
Recommended Posts
Archived
This topic is now archived and is closed to further replies.