Solved

Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp)

Posted on 2004-10-10
6
810 Views
Last Modified: 2008-01-09
Hi all

Got this random error for I don't know what reason.
Dont know if it a script error or a server error, cos it never used to have this error. This error only happens once in a while not always.

Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/*******/public_html/admin/includes/session.ssi on line 2

*****session.ssi*********
<?
session_start();
header("Cache-control: private"); // IE 6 Fix.
?>

session.ssi is included right at the top of each page.

Thanks
0
Comment
Question by:minichicken
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 27

Accepted Solution

by:
Diablo84 earned 350 total points
ID: 12271138
hmm, this is a new one on me. Try emptying your temp session directory, its possible that it is becoming full before the garbage clean up occurs at certain times and hence can't write any more data.

Just had a quick look to see if i could find anyone else who has experienced this problem and it seems your not alone
http://bugs.php.net/bug.php?id=25876

Apparently the problem was fixed in CVS so you might want to direct your attention here: http://snaps.php.net/ however there is several suggestions in the previous link that will hopefully help you get to the bottom of it.

0
 
LVL 12

Author Comment

by:minichicken
ID: 12274401
Thanks I will go have a look... and let you know how it goes... the thing is that, the site is hosted with a hosting company....
I think I should let them know about the problem and ask them to fix it, as I dont access to the server...

Thanks again... I will give the points as soon as it solved, it might take while though, hope you don't mind....
0
 
LVL 27

Expert Comment

by:Diablo84
ID: 12274582
thats no problem minichicken, best of luck with getting the problem fixed.
0
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 12

Author Comment

by:minichicken
ID: 12333567
Hi Diablo

Sorry that I took so long to accept your answer, I think the problem should be fixed, the hosting company hasnt got back to me yet. They so inefficient..... But I believe your solution is correct....

Thanks for your help :)
0
 

Expert Comment

by:ceciliamtz
ID: 12862528
Thanks to all for responding. I am waiting response from the hosting company but in the meanwhile I post the server's PHP info (sessions) to see if any of you sees something out of the ordinary:

session
Session Support       enabled
Registered save handlers       files user

Directive      Local Value      Master Value
session.auto_start      Off      Off
session.bug_compat_42      On      On
session.bug_compat_warn      On      On
session.cache_expire      180      180
session.cache_limiter      nocache      nocache
session.cookie_domain      no value      no value
session.cookie_lifetime      0      0
session.cookie_path      /      /
session.cookie_secure      Off      Off
session.entropy_file      no value      no value
session.entropy_length      0      0
session.gc_divisor      100      100
session.gc_maxlifetime      1440      1440
session.gc_probability      1      1
session.name      PHPSESSID      PHPSESSID
session.referer_check      no value      no value
session.save_handler      files      files
session.save_path      /tmp/php-ses      /tmp/php-ses
session.serialize_handler      php      php
session.use_cookies      On      On
session.use_only_cookies      Off      Off
session.use_trans_sid      On      On

0
 

Expert Comment

by:ceciliamtz
ID: 12862533
ups!!! SORRY!!! wrong thread!!

Admins: you can go ahead and delete my comments.

sorry again!
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question