PDA

View Full Version : OsCommerce down!


Golden Apple
6-6-05, 10:12 PM
I was attempting to install Paypal IPN and managed to knock down my whole site. I'm now getting this message

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /www/x/xxxxxxxxxx/htdocs/osCommerce/catalog/includes/functions/database.php:13) in /www/x/xxxxxxxx/htdocs/osCommerce/catalog/includes/functions/database.php on line 13

Any clues?

John

stevel
6-6-05, 10:19 PM
You have a coding error that causes a file to be included twice. This can be tricky to diagnose, but as database.php is called in application_top.php, it's hard to imagine what you may have done to get it called twice.

Golden Apple
6-6-05, 11:49 PM
Well, what I did was I replaced the includes/lang/engl/index.php with the catalog/index.php file. Figured it out after only a few suicide attempts :) boy did I pick the wrong day to give up heroin!

sgarage
6-7-05, 12:00 AM
It would of been nice if each directory had unique file names...

every file in catalog could start off with "cat_" like "cat_config.inc.php"
every file in admin could start off with "adm_"

Maybe in osCommerce 3.0 :cool: