Well, Happy Christmas everyone! I wasn’t intending to post today, but (a) things are slack here, and (b) a client contacted me to say his website wasn’t working. He was getting the error message:
bc. Fatal error: session_register(): Failed to initialize storage module: user (path: /tmp) in /path/to/file.php on line XX
As he hosts with either of the two companies I deal with, I told him to contact his hosting company as it looked like a server problem.
Then I checked one of my sites - I had the same problem. Mmm. Thoughts flashed through my mind - was this an evil PHP bug, dedicated to wipe every site off the Internet on Christmas day? Had I done something stupid?
A “search on Google”:http://www.google.co.uk/search?q=Fatal+error%3A+session_register()%3A+Failed+to+initialize+storage+module%3A+user+(path%3A+%2Ftmp)+in turned up a few results, most illuminatingly “this PHP bug report”:http://bugs.php.net/bug.php?id=25876. I don’t remember having set a session.save_path anywhere, so I’m going to live with this as a random happening for the time being.
I’ll keep you informed if more information turns up.
2 comments ↓
Check the php.ini file (in Debian it resides on /etc/php/apache/ and/or /etc/php/cgi/) and look for session handling settings. Check if the user who runs the scripts has permission on the directory where the session variables are kept.
Excuse me for my poor english.
Check the php.ini file (in Debian it resides on /etc/php/apache/ and/or /etc/php/cgi/) and look for session handling settings. Check if the user who runs the scripts has permission on the directory where the session variables are kept.
Excuse me for my poor english.
Leave a Comment