Fatal error "Failed to initialize storage module"

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
Marcel
Posts: 80
Joined: Sat 8. Jan 2005, 13:07

Fatal error "Failed to initialize storage module"

Post 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
Last edited by Marcel on Mon 30. Apr 2007, 19:12, edited 1 time in total.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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();
}
Marcel
Posts: 80
Joined: Sat 8. Jan 2005, 13:07

Post by Marcel »

Hi Dexxus

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

Cheers
Marcel
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply