Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_db_connect() Fatal Error message


Guest

Recommended Posts

Hey there guy/girls. I am in the middle of moving my OSC site to a new server and today I got the following error message:

 

 

Fatal error: Call to undefined function: tep_db_connect() in /home/wholesa1/public_html/includes/application_top.php on line 161

 

Here is the code located at line 161.

 

// define how the session functions will be used
 require(DIR_WS_FUNCTIONS . 'sessions.php');
 tep_session_name('osCsid');

 

Now best part... My site was working just fine.... Went to show what I did to a friend and BAM the error came up! If it matters I am in the middle of changing my Name Servers over to the new server now.. I have the New Name server information put in just waiting for it to replicate. However here is the temp address so you can see this message first hand.

 

http://st01.startlogic.com/~wholesa1/

 

Any input woudl be great!

 

ohhhh BTW: I have done a search in OSC support forums and on google and I am not the only one with this problem, however there has not been any true answers that I could follow so I can fix this. Most answers are "it fixed itself" etc....

 

Thanks EVERYONE

Link to comment
Share on other sites

I have found these two lines of code with both include sessions.php. Wondering if someone could tell me if either of these are the ones causeing my problems and if so what needs to be done to fix it.

 

// check to see if php implemented session management functions - if not, include php3/php4 compatible session class
 if (!function_exists('session_start')) {
   define('PHP_SESSION_NAME', 'sID');
   define('PHP_SESSION_SAVE_PATH', '/tmp');

   include(DIR_WS_CLASSES . 'sessions.php');
 }

 

And further down on line 161

 

// define how the session functions will be used
 require(DIR_WS_FUNCTIONS . 'sessions.php');

<_<

I would guess taht because DIR_WS_CLASSES is marked at Sessions.php and then later on DIR_WS_FUNCTIONS gets called to Sessions.php that we have a problem there.

 

Any Professional imput would be wonderful :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...