Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Powweb SMF and CPG integration session errors...  (Read 6110 times)

0 Members and 1 Guest are viewing this topic.

searanch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Powweb SMF and CPG integration session errors...
« 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...
Logged

[Unknown]

  • VIP
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Simple Machines
Re: Powweb SMF and CPG integration session errors...
« Reply #1 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]
Logged

searanch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Powweb SMF and CPG integration session errors...
« Reply #2 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
Logged

[Unknown]

  • VIP
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Simple Machines
Re: Powweb SMF and CPG integration session errors...
« Reply #3 on: October 09, 2004, 12:32:05 am »

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

-[Unknown]
Logged

searanch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Powweb SMF and CPG integration session errors...
« Reply #4 on: October 09, 2004, 12:40:10 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
« Last Edit: October 09, 2004, 12:58:17 am by searanch »
Logged

[Unknown]

  • VIP
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Simple Machines
Re: Powweb SMF and CPG integration session errors...
« Reply #5 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]
Logged

searanch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Powweb SMF and CPG integration session errors...
« Reply #6 on: October 09, 2004, 01:29:16 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...
Logged

[Unknown]

  • VIP
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Simple Machines
Re: Powweb SMF and CPG integration session errors...
« Reply #7 on: October 09, 2004, 03:00:52 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]
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Powweb SMF and CPG integration session errors...
« Reply #8 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
Logged

[Unknown]

  • VIP
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Simple Machines
Re: Powweb SMF and CPG integration session errors...
« Reply #9 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]
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.