Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Database.php


Alexandero

Recommended Posts

Posted

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

Posted
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.

Posted

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 ======>>>>>.

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...