Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sessions Errors


emsthings

Recommended Posts

Posted

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

Posted

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

Posted

Well thats an easy one, you need to setup your session cookie tmp directory directly, it seems it doesnt exist atm. so cookies cant be saved and that generates this error message

Posted

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.

Posted

Thanks VW so far changing it mysql has fixed it. But who knows hwta it wil do in the morning. BTW it was blank to begin with.

 

Thanks

Archived

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

×
×
  • Create New...