brett123 Posted April 8, 2008 Share Posted April 8, 2008 Hello all, I am new to oscommerce and php. I have recently installed oscomerce and it said everything was installed fine. when i tried to access the catalog through my website, i got this message: PHP Fatal error: Call to undefined function: tep_db_connect() in e:\Domains\earlswoodnurseries.co.uk\wwwroot\catalog\includes\application_top.php on line 67 I am using a windows based web host with php4. My host has provided me with mysql database for shopping cart. During the install procedure, oscommerce seemed to connect fine to the database. I cannot access the administration tool either. I would be grateful if anyone could please help and thanks. Link to comment Share on other sites More sharing options...
♥FWR Media Posted April 8, 2008 Share Posted April 8, 2008 Hello all, I am new to oscommerce and php. I have recently installed oscomerce and it said everything was installed fine. when i tried to access the catalog through my website, i got this message: PHP Fatal error: Call to undefined function: tep_db_connect() in e:\Domains\earlswoodnurseries.co.uk\wwwroot\catalog\includes\application_top.php on line 67 I am using a windows based web host with php4. My host has provided me with mysql database for shopping cart. During the install procedure, oscommerce seemed to connect fine to the database. I cannot access the administration tool either. I would be grateful if anyone could please help and thanks. Line 67 should look like and have above it the following: - // include the database functions require(DIR_WS_FUNCTIONS . 'database.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); As you can see database.php and therefore the function tep_db_connect() is called before the DB connect is requested. Either you have deleted a line here or the file catalog/includes/functions/database.php is missing or corrupt. 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. Link to comment Share on other sites More sharing options...
brett123 Posted April 8, 2008 Author Share Posted April 8, 2008 Line 67 should look like and have above it the following: - // include the database functions require(DIR_WS_FUNCTIONS . 'database.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); As you can see database.php and therefore the function tep_db_connect() is called before the DB connect is requested. Either you have deleted a line here or the file catalog/includes/functions/database.php is missing or corrupt. Thanks for the help, turned out database file was missing so im going to reinstall oscommerce Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.