Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error@#!*!


Guest

Recommended Posts

Posted

I hope someone could give me some guidance on this. I attempted to insert a new Privacy policy for my store and to cut a long story short it didn't work I received an error which I thought I had remedied until I got this fatal error:-

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /hsphere/local/home/admineli/store.xxxxxxx.biz/catalog/includes/functions/database.php:13) in /hsphere/local/home/admineli/store.xxxxxxx.biz/catalog/includes/functions/database.php on line 13

 

 

I uploaded the original privacy.php file and also the database.php file to absolutely no avail. I am totally stumped.

 

Thanks

Posted
I hope someone could give me some guidance on this. I attempted to insert a new Privacy policy for my store and to cut a long story short it didn't work I received an error which I thought I had remedied until I got this fatal error:-

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /hsphere/local/home/admineli/store.xxxxxxx.biz/catalog/includes/functions/database.php:13) in /hsphere/local/home/admineli/store.xxxxxxx.biz/catalog/includes/functions/database.php on line 13

I uploaded the original privacy.php file and also the database.php file to absolutely no avail. I am totally stumped.

 

Thanks

 

it seems like for some reason your code is including database.php twice, or for some reason database.php has declared tep_db_connect function twice.

 

I think the earlier is the case for you. check if your code is not including database.php twice in your code.

database.php is included at application_top.php by the following syntax:

 

require(DIR_WS_FUNCTIONS . 'database.php');

 

Or, you can search for

 

function tep_db_connect()

 

and see where it is declared twice.

Posted

probably happened because you copied osC root files into the language folders.

Archived

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

×
×
  • Create New...