function.session-start]: Failed to initialize storage module: user (path: /www/gif..."> function.session-start]: Failed to initialize storage module: user (path: /www/gif...">
Previous Thread
Next Thread
Print Thread
Hop To
Joined: Nov 2006
Posts: 9
N
Nat
Offline
stranger
stranger
N Offline
Joined: Nov 2006
Posts: 9
"Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: user (path: /www/gifafi/public_html/sessions) in /www/gifafi/public_html/libs/ubbthreads.inc.php on line 55"

Something going on with my sessions? I'm not sure what this means.

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Quote
// Start the session here
if (!defined('ALTER') && !defined('IMPORT')) {
session_save_path($config['SESSION_PATH']);
$check = @session_start();
header("Cache-control: private");
}

It looks like it is probably some type of path issue.

Joined: Nov 2006
Posts: 9
N
Nat
Offline
stranger
stranger
N Offline
Joined: Nov 2006
Posts: 9
I realized that I have file-based sessions turned off on my server because I use a custom MySQL-based handler for my other site.

I think I can htaccess to change the setting for this directory, but I need to find the code.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
This should help


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 9
N
Nat
Offline
stranger
stranger
N Offline
Joined: Nov 2006
Posts: 9
Originally Posted by Gizmo
This should help
Hrmm, don't see htaccess on that page anywhere. I guess I should mention that I want to avoid changing the server settings back since, as I understand it, it can be done through htaccess.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I think this is a valid example for your .htaccess (using the above directives):
Code
php_value session.save_path /tmp


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 9
N
Nat
Offline
stranger
stranger
N Offline
Joined: Nov 2006
Posts: 9
Hrmm, tried dropping this into an .htaccess, no go thus far.

php_value session.auto_start 0
php_value session.save_path /tmp

I think I'm still missing something, I can't seem to find clear directions on how to do this. I might just have to get a new server.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I think you might need to add:

php_admin_value session.save_handler files

Joined: Nov 2006
Posts: 9
N
Nat
Offline
stranger
stranger
N Offline
Joined: Nov 2006
Posts: 9
Woohoo, the following .htaccess file worked...

Code
php_value session.auto_start 0
php_value session.save_path /tmp
php_value session.save_handler files

Just had to take out the admin part. Thanks Rick.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by Nat
Thanks Rick.
psh, it was my idea wink lol Glad to hear you got it working smile

Last edited by Gizmo; 11/30/2006 12:53 AM.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (1 invisible), 702 guests, and 193 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)