Powweb SMF and CPG integration session errors... Powweb SMF and CPG integration session errors...
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Powweb SMF and CPG integration session errors...

Started by searanch, October 08, 2004, 09:54:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

searanch

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...

[Unknown]

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]

searanch

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

[Unknown]

Can you comment out line 125 of smf.inc.php, then?

-[Unknown]

searanch

#4
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

[Unknown]

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]

searanch

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...

[Unknown]

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]

Joachim Müller

ini_set('session.save_path', '/tmp'); should go into include/init.inc.php (will of course not work for all).

Joachim

[Unknown]

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]