Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sessions Error


Guest

Recommended Posts

I have the site up and running but when people go onto the site here is the error they see

Warning: session_start(): open(/tmp/sess_70f031679ff8e51eb80a26480981d850, O_RDWR) failed: Stale NFS file handle (70) in /www/c/catsceramics/htdocs/osCommerce/catalog/includes/functions/sessions.php on line 67

 

Warning: is_dir(): Stat failed for /tmp (errno=70 - Stale NFS file handle) in /www/c/catsceramics/htdocs/osCommerce/catalog/includes/header.php on line 23

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

The /tmp file exists and set to 777 in both the catalog directory and the admin directory, is it in the wrong place or am I missing something.

 

Here are the sections from the sessions.php and the header.php

  }

 

  function tep_session_start() {

    return session_start();

  }

 

  function tep_session_register($variable) {

    global $session_started;

 

    if ($session_started == true) {

      return session_register($variable);

    } else {

      return false;

 

  }

 

// check if the session folder is writeable

  if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

    if (STORE_SESSIONS == '') {

      if (!is_dir(tep_session_save_path())) {

        $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

      } elseif (!is_writeable(tep_session_save_path())) {

        $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

      }

    }

  }

 

Thanks in advance for any help

Link to comment
Share on other sites

It's far better to store sessions in your database rather than in a tmp folder - especially on a shared server.

 

On the last line of both configure.php files make sure that they read 'mysq' where indicated.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...