coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: searanch on October 08, 2004, 09:54:41 PM

Title: Powweb SMF and CPG integration session errors...
Post by: searanch on October 08, 2004, 09:54:41 PM
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...
Title: Re: Powweb SMF and CPG integration session errors...
Post by: [Unknown] on October 08, 2004, 11:10:10 PM
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]
Title: Re: Powweb SMF and CPG integration session errors...
Post by: searanch on October 09, 2004, 12:17:34 AM
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
Title: Re: Powweb SMF and CPG integration session errors...
Post by: [Unknown] on October 09, 2004, 12:32:05 AM
Can you comment out line 125 of smf.inc.php, then?

-[Unknown]
Title: Re: Powweb SMF and CPG integration session errors...
Post by: searanch on October 09, 2004, 12:40:10 AM
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
Title: Re: Powweb SMF and CPG integration session errors...
Post by: [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]
Title: Re: Powweb SMF and CPG integration session errors...
Post by: searanch on October 09, 2004, 01:29:16 AM
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...
Title: Re: Powweb SMF and CPG integration session errors...
Post by: [Unknown] on October 09, 2004, 03:00:52 AM
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]
Title: Re: Powweb SMF and CPG integration session errors...
Post by: Joachim Müller on October 09, 2004, 05:45:18 AM
ini_set('session.save_path', '/tmp'); should go into include/init.inc.php (will of course not work for all).

Joachim
Title: Re: Powweb SMF and CPG integration session errors...
Post by: [Unknown] on October 09, 2004, 08:04:26 AM
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]