Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to undefined function: tep_sessi


Guest

Recommended Posts

Okay.. working with a fresh install of OSC. Install went well. Had to use the register_globals contribution because I wasn't able to turn on register_globals on my shared server or enable it via htaccess.

 

Now that I have completed the install process, I cannot access the store. When I try to go to /catalog/index.php I get the following error:

 

Fatal error: Call to undefined function: tep_session_save_path() in /home/cust1/user1089049/html/catalog/includes/application_top.php on line 146

 

Here are lines 131 - 162 of the application_top.php file:

// check if sessions are supported, otherwise use the php3 compatible session class
 if (!function_exists('session_start')) {
   define('PHP_SESSION_NAME', 'osCsid');
   define('PHP_SESSION_PATH', $cookie_path);
   define('PHP_SESSION_DOMAIN', $cookie_domain);
   define('PHP_SESSION_SAVE_PATH', SESSION_WRITE_DIRECTORY);

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

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

// set the session name and save path
 tep_session_name('osCsid');
 tep_session_save_path(SESSION_WRITE_DIRECTORY);

// set the session cookie parameters
  if (function_exists('session_set_cookie_params')) {
   session_set_cookie_params(0, $cookie_path, $cookie_domain);
 } elseif (function_exists('ini_set')) {
   ini_set('session.cookie_lifetime', '0');
   ini_set('session.cookie_path', $cookie_path);
   ini_set('session.cookie_domain', $cookie_domain);
 }

// set the session ID if it exists
  if (isset($HTTP_POST_VARS[tep_session_name()])) {
    tep_session_id($HTTP_POST_VARS[tep_session_name()]);
  } elseif ( ($request_type == 'SSL') && isset($HTTP_GET_VARS[tep_session_name()]) ) {
    tep_session_id($HTTP_GET_VARS[tep_session_name()]);
  }

 

Has anyone else dealt with this error? How do Iget things up and running from here?

Link to comment
Share on other sites

It's working now. I went back through the install process. I THINK that the problem was with the selection of where sessions are stored. I had selected file-based storage, and this time around I selected database storage and it appears to be working correctly.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...