Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help Fatal error


giftmaster

Recommended Posts

When I try to add or edit products I get this code:

 

Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/chcgift/public_html/shop/admin/includes/functions/sessions.php on line 67

 

 

It goes away after I refersh my brouser a few times

Any help would be great!!

Ray

Link to comment
Share on other sites

you need to create a tmp directory, i would create a tmp directory at /home/chcgift so it is /home/chcgift/tmp for the path and in the store admin there are a few spots, logging and sessions which need to be changed. set the tmp to be 777

 

also, if u dont have it, set store sessions to mysql in the configure.php files

Link to comment
Share on other sites

where do you have the directory located in your document root path?

 

is it along the lines of what i proposed?

 

and what do you have set in the admin area of the store for the path?

Link to comment
Share on other sites

I think I see the problem what you are talking about.

In admin I see this in sessions

 

Sessions

 

Title Value Action

Session Directory /tmp

Force Cookie Use False

Check SSL Session ID False

Check User Agent False

Check IP Address False

Prevent Spider Sessions False

Recreate Session False

Session Directory

 

 

If sessions are file based, store them in this directory.

 

Date Added: 09/24/2004

 

 

Does the part in red have to go to my temp dir which is home/chc/temp ?

Link to comment
Share on other sites

I did the change in Admin and got this error:

 

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

 

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

 

 

Could mabe I have 2 temp folders?

Link to comment
Share on other sites

if you are using this:

 

Does the part in red have to go to my temp dir which is home/chc/temp ?

 

then you need to have the path in the logging and sessions to temp and not to tmp

 

and it should be /home/chc/temp or /home/chc/tmp and not home/chc/temp . . .

Link to comment
Share on other sites

  • 2 weeks later...

catalog/includes/configure.php and admin/includes/configure.php

 

the last line was like this define('STORE_SESSIONS', '');

then I made it like this

define('STORE_SESSIONS', 'mysql'); and problem went away..

 

my guess is that you arewriting to the tmp file in the root and when you refresh the browser a few times it overwrites all the files in th tmp dir so the error goes away but not for long until the file is overwritten again..

This hack keeps the tmp files in mysql

 

Oz

Link to comment
Share on other sites

  • 3 weeks later...

I hate to add on to this thread, but I have the exact same problem and cannot figure it out.

 

I have changed the setting from

 

define('STORE_SESSIONS', '');

 

to

 

define('STORE_SESSIONS', 'mysql');

 

With the first one I get errors and with the second I get errors. I have cleared out folders, created folders, cleared out the database sessions table, still no luck. Is there anything else to try here or am I over looking something obvious?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...