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
Solved

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

Posted on 2004-10-10
6
723 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
  • 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

860 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