Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php error


brett123

Recommended Posts

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

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.

Link to comment
Share on other sites

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

Archived

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

×
×
  • Create New...