PDA

View Full Version : Fatal error: session_start(): What is going on???


ljm
06-07-2005, 05:54 AM
We are having trouble with our soholaunch (version 4.81 build 05) website. This is the error:

Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/bhnlc/public_html/index.php on line 30

It seems to happen randomly but fairly often. A page will load fine and then BAM you will get this error message. Refresh the page and it may or may not reload fine.

Has anyone any ideas here as what to do. We use varhosting as our web hosts and they say its to do with the php code.

Can anyone point me in the right direction to fix this as I am by no means a php expert!!! And I would really like to carry on using soholaunch as it is ideal for my situation.

Thanks in advance.

SteveR
06-30-2005, 01:59 PM
Okay, I found a workaround for this.

Overwrite your exisiting index.php with a version that has this:

ini_set("session.save_handler", "files");

inserted right above the "session_start()" on line 30.

**EDIT**
There is another file that must be modified...I just need a little time to find it. Stand by...
**END EDIT**

This is a php problem that apparently no one can really explain. Tonight I'm going to work on finding out how to get Soholaunch to write this extra line when it creates index.php; I'll post it when I get it to work.

-Steve

SteveR
06-30-2005, 11:48 PM
Alright, unless someone can think of a different way, I'm just going to post files here that need to be modified with the added line. The problem here is that the error doen't show up on a consistent, repeatable basis, so getting a handle on exactly which files need to be changed is a little tricky. So, here goes:

index.php

sohoadmin/program/modules/page_editor/text_editor_45.php

sohoadmin/program/loader.php

sohoadmin/program/user_options_46

sohoadmin/program/modules/page_editor/text_editor_link.php

sohoadmin/program/modules/page_editor/text_editor_modTable.php

Hopefully, not too many more :rolleyes:

SteveR
01-25-2006, 11:07 PM
Just an FYI, in case your webmaster hasn't done this already:

Just edit your .htaccess file to include the following:

RewriteEngine On
php_value session.save_handler files

That solved everything for me.

-Steve