Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Database.php "FATAL ERROR"


astronaut

Recommended Posts

Posted

Not sure what I messed up here. I have this error when I go to the login.php page.

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/scbadmin/public_html/newcatalog/includes/functions/database.php:13) in /home/myserveradmin/public_html/newcatalog/includes/functions/database.php on line 13

 

 

Seems like application_top.php calls the funtion tep_db_connect()

and database.php runs the connection. This error states I am declaring the database connection twice, but I am not seeing it?

 

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/scbadmin/public_html/newcatalog/includes/functions/database.php:13) in /home/myserveradmin/public_html/newcatalog/includes/functions/database.php on line 13.

woo!

Posted

I had assumed since you had gotten so far in figuring this out that all you needed was a little hint.

 

You have probably uploaded a code file over top of a language file. Look at login.php and includes/languages/english/login.php. They should not be the same thing. Look at the other language files to see what the content should look like. Your includes/languages/english/login.php can be restored from your own backup or from a copy of the oscommerce download.

Contributions

 

Discount Coupon Codes

Donations

Posted
I had assumed since you had gotten so far in figuring this out that all you needed was a little hint.

 

You have probably uploaded a code file over top of a language file. Look at login.php and includes/languages/english/login.php. They should not be the same thing. Look at the other language files to see what the content should look like. Your includes/languages/english/login.php can be restored from your own backup or from a copy of the oscommerce download.

 

 

Funny, thanks. I think stress blinded me. Thanks for helping me sort this out!

woo!

Archived

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

×
×
  • Create New...