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: vB3+CPG1.3: "An error occurred while attempting to log you out. Click here to...  (Read 2445 times)

0 Members and 1 Guest are viewing this topic.

troykristoffer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11

Well, I finally got it all working except for this minor little bug:

When trying to log out of the gallery I get the "An error occurred while attempting to log you out. Click here to log out." error. When I click the "Click here to..." link, it does log me out, but I'd like to fix the annoying little interuption in the process.

(To recreate the problem use the following information:
Forum: http://www.rctfans.com/forum
Gallery: http://www.rctfans.com/gallery
Username: testaccount1
Password: testaccount1
)

Go to the forum and login with the test account. Next, surf to the gallery (Sorry no direct link on the page yet...) and click the "Logout(Username)" link. You'll see the error. Click the "Click Here To..." link to really logout.

I've cleared my cookies from the browser and it still happens.

If nobody can tell me whats wrong, maybe you can tell me if this would work:

Replace the "Logout/Login" link on the gallery template with the direct Logout/Login link for the forum? (That way, we'd bypass the bridge altogether, and simply use the FORUM logout interface? [instead of having coppermine tell the forum to log the user out.])?
Logged

Nibbler

  • Guest

Try changing the logout function in the bridge file

Code: [Select]
// Logout
function udb_logout_page()
{
    $target = 'login.php?&do=logout';
    udb_redirect($target);
}

to include the u= parameter

Code: [Select]
// Logout
function udb_logout_page()
{
    $target = 'login.php?&do=logout&u=' . USER_ID;
    udb_redirect($target);
}
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 15 queries.