Author Topic: Fatal error: session_start() - POSSIBLE SOLUTION  (Read 10322 times)

0 Members and 1 Guest are viewing this topic.

Offline van

  • Pre-Newbie
  • Posts: 1
    • View Profile
Fatal error: session_start() - POSSIBLE SOLUTION
« on: January 30, 2006, 12:07:32 AM »
I was suffering from the same problem that many are ... seeing these messages when you run 4images:

        Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in
        /your_home_directory/path_to_4images_gallery/includes/sessions.php on line 84

I was surprised to see that despite the large number of people who are reporting this, the answer in these forums is consistently "contact your hosting company". If anyone in these forums ever tried to give any real help with this issue, it is buried so deep in the results of the message search that nobody will ever find the answer. And if you followed that advice, the likely answer would be "contact 4Images" anyway!

If you are getting this message *CONSISTENTLY*, then there is clearly something wrong with the hosting company's server setup, and you need to ask them to take a look. Hopefully, they will fix it.

But, if 4Images works fine most of the time, and you sometimes see one of these messages, or your server seems to get hung up on them for a minute or so, then it starts working again ... try this:

Create a "/tmp/sessions" directory in your home directory, check the permission to make sure it is writeable, then add the following line to ".htaccess":

        php_value session.save_path /your_home_directory/tmp/sessions

This solved my problem 100%, and I assume it will work for many of you, too. This simply isolates your 4Images session variables to a private /tmp space, avoiding whatever conflicts were causing the problem.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Fatal error: session_start() - POSSIBLE SOLUTION
« Reply #1 on: January 30, 2006, 12:31:25 AM »
And if you followed that advice, the likely answer would be "contact 4Images" anyway!
if that happend, then my advise would be change the host to one where administrators know what they are doing.


But, if 4Images works fine most of the time, and you sometimes see one of these messages, or your server seems to get hung up on them for a minute or so, then it starts working again ... try this:

Create a "/tmp/sessions" directory in your home directory, check the permission to make sure it is writeable, then add the following line to ".htaccess":

 php_value session.save_path /your_home_directory/tmp/sessions

This solved my problem 100%, and I assume it will work for many of you, too. This simply isolates your 4Images session variables to a private /tmp space, avoiding whatever conflicts were causing the problem.
Very good sollution!
thank you. I'll add it into our FAQ topic about this issue ;)
http://www.4homepages.de/forum/index.php?topic=11191.0
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ManniC

  • Full Member
  • ***
  • Posts: 182
    • View Profile
    • photographic impressions
Re: Fatal error: session_start() - POSSIBLE SOLUTION
« Reply #2 on: February 02, 2006, 09:36:32 PM »
Hi V@no,

could you specify which setting in the php.ini is responsible for that problem? Maybe "session.save_path" ????

I'm just corresponding with my hoster to fix it at http://galerie.mc-com.de/ , my phpinfo is at http://www.mc-com.de/TEST/phpinfo.php

TIA,

Viele Grüße / Best Regards
Manfred
------------------------------------------------------
photographic impressions powered by mc-com.de[/color][/url][/size]

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Fatal error: session_start() - POSSIBLE SOLUTION
« Reply #3 on: February 03, 2006, 12:07:24 AM »
could you specify which setting in the php.ini is responsible for that problem? Maybe "session.save_path" ????
correct.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)