Sessions error in Coppermine
After changing SMF to "Use database driven sessions" because Powweb does not support /temp sessions we are getting the following error in our bridged Coppermine Gallery:
Warning: session_start(): open(/tmp/php/sessions/6/b/a/sess_6bac9b85374ef2cb9c77ccd4250bee0b, O_RDWR) failed: No such file or directory (2) in /www/g/gashole/htdocs/smf/gallery/bridge/smf.inc.php on line 148
line 48 currently reads:
session_start();
Can anyone help us?
Thanx...
What you might try is:
include_once('/path/to/smf/Sources/Load.php');
session_set_save_handler('sessionOpen', 'sessionClose', 'sessionRead', 'sessionWrite', 'sessionDestroy', 'sessionGC');
session_start();
Does that solve anything, at all?
-[Unknown]
I am now getting the following error in Coppermine after making the changes in smf.inc.php:
Fatal error: Cannot redeclare reloadsettings() (previously declared in /www/g/gashole/htdocs/smf/gallery/bridge/smf.inc.php(125) : eval()'d code:3) in /www/g/gashole/htdocs/smf/Sources/Load.php on line 97
Can you comment out line 125 of smf.inc.php, then?
-[Unknown]
Quote from: [Unknown] on October 09, 2004, 12:32:05 AM
Can you comment out line 125 of smf.inc.php, then?
-[Unknown]
New error after commenting out line 125:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /www/g/gashole/htdocs/smf/gallery/include/functions.inc.php on line 77
Fatal error :
There was an error while processing a database query
Sigh, that's right... I forgot about that.
You can, perhaps, try something like this in a settings file for Coppermine:
ini_set('session.save_path', '/tmp');
-[Unknown]
Quote from: [Unknown] on October 09, 2004, 01:10:43 AM
Sigh, that's right... I forgot about that.
You can, perhaps, try something like this in a settings file for Coppermine:
ini_set('session.save_path', '/tmp');
-[Unknown]
Should I put smf.inc.php back the way I found it? Where would I put the above changes? I very much appreciate your help - I'm sure others are/will go thru the same issue...
Quote from: searanch on October 09, 2004, 01:29:16 AM
Should I put smf.inc.php back the way I found it? Where would I put the above changes? I very much appreciate your help - I'm sure others are/will go thru the same issue...
Yes, sorry, that's what I meant. Put the smf.inc.php back to the original (or just download it again) and make that change in your settings file (I fear I don't know what settings file Coppermine uses...)
-[Unknown]
ini_set('session.save_path', '/tmp'); should go into include/init.inc.php (will of course not work for all).
Joachim
http://www.php.net/session_save_path
If ini_set does not work, this function could be used (I couldn't remember if there was a function, off hand...)
session_save_path('/tmp');
-[Unknown]