vB3+CPG1.3: "An error occurred while attempting to log you out. Click here to... vB3+CPG1.3: "An error occurred while attempting to log you out. Click here to...
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

vB3+CPG1.3: "An error occurred while attempting to log you out. Click here to...

Started by troykristoffer, May 27, 2005, 12:35:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

troykristoffer

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.])?

Nibbler

Try changing the logout function in the bridge file

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


to include the u= parameter

// Logout
function udb_logout_page()
{
    $target = 'login.php?&do=logout&u=' . USER_ID;
    udb_redirect($target);
}