Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sessions Errors


emsthings

Recommended Posts

I get this error sometimes not all the time.

Cannot send session cookie - headers already sent

Cannot send session cache limiter - headers already sent

It says these errors are on line 67

 

Failed to write session data (files)

error on line 106

 

Have you ever had this before and what do I do to fix it. When it does this my product pics won't load. But if I don't log on for a little while it goes away. I have also restored backup and it will go away?

Hummm Any thoughts?

Thanks

Jason Cherry

Link to comment
Share on other sites

here are the full error messages.

I get this error sometimes not all the time.

On the top

Warning: session_start(): open(/tmp/sess_842ac4bcbef293cfab8131494c6f6486, O_RDWR) failed: Input/output error (5) in /home/jcherry/public_html/shop/catalog/admin/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/jcherry/public_html/shop/catalog/admin/includes/functions/sessions.php:67) in /home/jcherry/public_html/shop/catalog/admin/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/jcherry/public_html/shop/catalog/admin/includes/functions/sessions.php:67) in /home/jcherry/public_html/shop/catalog/admin/includes/functions/sessions.php on line 67

 

on the bottom

 

Warning: Unknown(): open(/tmp/sess_842ac4bcbef293cfab8131494c6f6486, O_RDWR) failed: Input/output error (5) 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

Link to comment
Share on other sites

I had the same problem too. I think I fixed it by going into

includes/configure.php

in the following line:

 

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

set it to mysql like below:

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

After I changed this, the error messages went away.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...