Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sessions directory does not exist?


MACKhosting.com

Recommended Posts

Posted

Hello everyone,

 

Today I got a payment notification but no order, which is weird because it's the first time it has happened. So I went to the store and the order was in the database. I went to the store to set up a test order and see if it would email this time. At the top with a pink background I get this message:

 

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

 

I have never seen this before. Is it just coincidence that these two problems happened at the same time or are they related?

 

I guess you can check it out at The Slabs Store

 

Thanks

Posted

Your hosting company may have blocked /tmp/ for security reasons. Set up a directory on your website, chmod 777 or 775, then in admin panel - configuration - sessions edit the sessions path to this new directory.

 

ex: catalog/sessions

 

Then set your robots.txt to deny this path to spiders.

GEOTEX from Houston, TX

 

(George)

Posted

Well, that seems to have worked in the actual cart, but now in the admin section I get this:

 

Warning: session_start(): open(sessions/sess_d6b7ee54e5a115772f5333d4cf38a839, O_RDWR) failed: No such file or directory (2) in /home/theslabs/public_html/store/admin/includes/functions/sessions.php on line 67

 

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

 

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

 

Warning: Cannot modify header information - headers already sent by (output started at /home/theslabs/public_html/store/admin/includes/functions/sessions.php:67) in /home/theslabs/public_html/store/admin/includes/functions/general.php on line 18

 

Warning: Unknown(): open(sessions/sess_d6b7ee54e5a115772f5333d4cf38a839, 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 (sessions) in Unknown on line 0

 

Also, I still have problems with the order emails not sending.

Posted

On the sessions you might want to try and store them in the database rather than in the external files.

 

change the last line in the following files

 

catalog/includes/configure.php

admin/includes/configure.php

 

from

 

define('STORE_SESSIONS', '');

 

to

 

define('STORE_SESSIONS', 'mysql');

 

On the emails, see if they begin working again after you resolve the session issues.

 

HTH

Tom

Posted

I don't know what is going on now. I made those two changes to the configure files. Now when I go to the store index page it's like the style sheets don't work and all the images are gone. That is at http://www.theslabs.com/store

 

Also, I made the change to the admin configure page. It took away the error type messages that were showing up, but any of the links I clicked, like Orders or Customers, said the file could not be found.

Posted

Man, I have no idea how that happened. This is the most frustrating thing I've had to deal with. I did a cart for another site and had absolutely no problems with it at all. I tested this pretty extensively for 3 or 4 days with no problems last week. Today the advertising started for this site and now the store doesn't work and I don't have time to fix it because I have a project due tomorrow and a final on Friday!!!

Posted

I don't know what I did, but the problem seems to be fixed, except for the non-emails. I wonder if it is a problem with the PayPal IPN contribution, but I don't know why because it worked before. I tried an order through check/MO and it worked fine and the email came but not when I paid through PayPal

Archived

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

×
×
  • Create New...