Log in

View Full Version : An error occurred while attempting to log you out...?


rogersnm
05-25-2006, 03:35 PM
I always get "An error occurred while attempting to log you out. Click here to log out." when i try to log out is there any way to bypass this screen so it just logs out even if there is an error?....

peterska2
05-25-2006, 03:43 PM
you have a problem in your navbar template.

replace everything in the script section at the top of the template with<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script> and it will work :) If not, then your logout button itself is faulty, so let me know how you get on and I'll provide the code for the logout button too if required.

rogersnm
05-26-2006, 05:33 PM
nope still the same poblem already had that... can i have the log out script then.....

Regards,
Nick (the dum guy over there ;))

Zachery
05-26-2006, 05:35 PM
There has been a mass of changes to how the logout script works, try reverting your forumhome and navbar templates.

rogersnm
05-26-2006, 05:36 PM
definately not converting my navbar have enough extra links there not to bother but i'll look into the forum home....

do you know which bit of the forum home i would need to revert?....

Zachery
05-26-2006, 05:39 PM
You'll need to revert both, or use the logout link from the default versions in order for your logouts to work.

rogersnm
05-26-2006, 05:40 PM
where's the logout code in teh reverted FORUMHOME?

Dan
05-26-2006, 05:40 PM
It's the logout link in your navbar, try replacing the link for it and making it

login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]


Should work fine, I had this problem on my forums and I compared the links and that will/should fix it.

rogersnm
05-26-2006, 05:43 PM
ahh work now it was the log out link in the navbar not the script....