Page 1 of 1

Fatal error "Failed to initialize storage module"

Posted: Sun 29. Apr 2007, 21:29
by Marcel
Hi

I've got a new installation of 1.3.2. Every once in a while I get the following error:

Code: Select all

Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: user (path: /var/lib/php) in /var/www/vhosts/way64.ch/httpdocs/include/inc_lib/default.inc.php on line 284
Usually refreshing or cache empting helps. Server settings should be OK, checked back - older versions all worked fine.

Thanks
Marcel

Posted: Sun 29. Apr 2007, 23:20
by DeXXus
You could ~TRY~ this... to see if it makes a difference:

EDIT "/include/inc_lib/default.inc.php"

CHANGE:

Code: Select all

function _initSession() {
	if(!session_id()) session_start();
	if(empty($_SESSION['phpwcmsSessionInit']) && function_exists("session_regenerate_id")) {
		session_regenerate_id();
		$_SESSION['phpwcmsSessionInit'] = true;
	}
	return session_id();
}
TO:

Code: Select all

function _initSession() {
	@ini_set( 'session.save_handler' , 'files' );
	if(!session_id()) session_start();
	if(empty($_SESSION['phpwcmsSessionInit']) && function_exists("session_regenerate_id")) {
		session_regenerate_id();
		$_SESSION['phpwcmsSessionInit'] = true;
	}
	return session_id();
}

Posted: Mon 30. Apr 2007, 01:57
by Marcel
Hi Dexxus

Thanks - it's better, but I still get the error from time to time.

Cheers
Marcel

Posted: Mon 30. Apr 2007, 07:13
by Oliver Georgi
contact your hosting provider, this is nothing phpwcms is responsible for.

And always!!! Fatal error alone is NO correct subject - always give some little more description.

Oliver