Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with session_start(): Open(/tmp


Cy Jobes

Recommended Posts

The following warnings appear at the top of the admin index.php page.

Warning: session_start(): open(/tmp\sess_9de14fad1fb0d24ec4545fe13f9b08e8, O_RDWR) failed: No such file or directory (2) in E:\oscommerce\admin\includes\functions\sessions.php on line 67

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at E:\oscommerce\admin\includes\functions\sessions.php:67) in E:\oscommerce\admin\includes\functions\sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\oscommerce\admin\includes\functions\sessions.php:67) in E:\oscommerce\admin\includes\functions\sessions.php on line 67

Under the interface I have the follwoing warnings:

Warning: Unknown(): open(/tmp\sess_9de14fad1fb0d24ec4545fe13f9b08e8, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

 

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

I am running my own dev server (Apache) and the php.ini file has the session.save_path set to "C:\PHP\sessions" (If that has anything to do with it)

Here is my admin config info:

  define('HTTP_SERVER', 'http://riker:8085'); // eg, http://localhost - should not be empty for productive servers

  define('HTTP_CATALOG_SERVER', 'http://riker:8085');

  define('HTTPS_CATALOG_SERVER', '');

  define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

  define('DIR_FS_DOCUMENT_ROOT', 'E:/oscommerce/catalog/'); // where the pages are located on the server

  define('DIR_WS_ADMIN', '/admin/'); // absolute path required

  define('DIR_FS_ADMIN', 'E:/oscommerce/catalog/admin/'); // absolute pate required

  define('DIR_WS_CATALOG', '/'); // absolute path required

  define('DIR_FS_CATALOG', 'E:/oscommerce/catalog/'); // absolute path required

  define('DIR_WS_IMAGES', 'images/');

  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

  define('DIR_WS_INCLUDES', 'includes/');

  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

I use virtualHost in my Apache config, in case you are wondering about the use of ports.

 

Can anyone help me figure out how to get rid of these errors? What's the deal with the /tmp in the first warning?

I went into both english.php files and got rid of the extra spaces at the end. Saw no difference.

 

Thanks in advance for your help.

 

Cy

Link to comment
Share on other sites

it looks like you are running Apache on a Windows machine. In admin, go to configuration, then sessions. Try changing the path to a directory using the full path. Example: E:\temp instead of just /tmp

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...