Results 1 to 17 of 17

Thread: cmps logout error

  1. #1
    Join Date
    Mar 2005
    Posts
    28

    Default cmps logout error

    I am getting the following error when trying to logout from the cmps:
    An error occurred while attempting to log you out. Click here to log out.

    cmps logout link:
    /forum/login.php?do=logout&u=1

    The forum logout link (working) has a hascode, should the cmps have one as well? I tried reverting the cmps welcome block, but that did not help.

    I was having other related cmps login problems, but fixed them with brian's fix in the faq forum (.mysite.com)

    Thanks
    Last edited by Grae; 09-17-2005 at 01:09 PM.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: cmps logout error

    I could have swore that was corrected in a previous version, but apparently not. If you'll look in your adv_portal_welcomeblock template for 2 instances of this code:
    Code:
    login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]
    And replace both with this:
    Code:
    login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]
    Then that should take care of the problem.

  3. #3
    Join Date
    Mar 2005
    Posts
    28

    Thumbs up Re: cmps logout error

    Works

    Thanks again for the great support here at vba!

  4. #4

    Default Re: cmps logout error

    Hello.

    I just upgraded to vb 3.5.0 from vb 3.0.9 and from vba 2.0 (for vb 3.0.x) to vba 2.0 (for vb 3.5.0) after downloading on vb & vba on 9/30/05. I made the above change in both places as mentioned because I couldn't logout in the welcome block.

    The revision fixed the logout link in the welcome block, but I still have a problem logging out from the link in the navbar. The login in the navbar works. The login in the welcome block doesn't work since it hasn't added the '/forum' prefix to 'login.php' url.

    How to fix these 2 problems?

    Thanks in advance.

  5. #5
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: cmps logout error

    Revert your navbar template. Then make sure you have this for the 'Form Code' option in your welcome block module:
    Code:
    <script src="{$vbulletin->options[bburl]}/clientscript/vbulletin_md5.js" type="text/javascript"></script> <form action="{$vbulletin->options[bburl]}/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)"> <input name="vb_login_md5password" type="hidden" /> <input name="s" type="hidden" value="" /> <input name="do" type="hidden" value="login" />

  6. #6

    Default Re: cmps logout error

    Thanks for your reply.

    Reverting the navbar solved that logout problem.

    Regarding the Welcome Block, exactly 'where' should I put this? Also, where is the closing </form> tag located? Keep the old login/logout code?

    Maybe I'm reading too much into this; trying to make sure I'm putting this in the correct spot...

    Thanks.

  7. #7
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: cmps logout error

    Admin CP => vBa CMPS => Edit Modules => Welcome Block => Form Code

    When you have something entered there then the </form> tag is automatically added in the module.

  8. #8

    Thumbs up Re: cmps logout error

    That did it, Brian.

    Thanks Much!!!

  9. #9

    Default Re: cmps logout error

    I also noticed this was happen with the whos online module

    So I changed the 'Form Code' from

    PHP Code:
    $vboptions[bburl]/online.php?$session[sessionurl
    to

    PHP Code:
    {$vbulletin->options[bburl]}/online.php?$session[sessionurl
    in the Online Users users module settings

  10. #10

    Default Re: cmps logout error

    Quote Originally Posted by Brian
    I could have swore that was corrected in a previous version, but apparently not. If you'll look in your adv_portal_welcomeblock template for 2 instances of this code:
    Code:
    login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]
    And replace both with this:
    Code:
    login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]
    Then that should take care of the problem.
    Just to let you know Brian I had to do this fix on the package I downloaded a few days ago...

  11. #11

    Default Re: cmps logout error

    There are other modules also with this problem.

    See http://www.vbadvanced.com/forum/showthread.php?t=11371

  12. #12
    Join Date
    Oct 2005
    Posts
    8

    Default Re: cmps logout error

    Quote Originally Posted by Brian
    I could have swore that was corrected in a previous version, but apparently not. If you'll look in your adv_portal_welcomeblock template for 2 instances of this code:
    Code:
    login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]
    And replace both with this:
    Code:
    login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]
    Then that should take care of the problem.
    I'm also experiancing the logout issue, but the form area only seems to show login code, nothing similar to the code mentioned above.

  13. #13
    Join Date
    Oct 2005
    Posts
    8

    Default Re: cmps logout error

    Disregard my previous post, I figured it out. phpbb convert here, still getting the hang of vb and advanced.

  14. #14

    Default Re: cmps logout error

    Brian,

    I just received an E-mail for this subscribed thread BUT...

    it has this link for the thread as 'http://www.vbadvanced.com/forum/showthread.php?t=10976&goto=newpost'

    but that takes me to this thread. This thread doesn't show your reply as:

    ~~~~~~~~~~~~~
    Thursday, October 13, 2005 1:31 PM (EDT)
    Reply to post 'cmps logout error'

    Brian has just replied to a thread you have subscribed to entitled - cmps logout
    error - in the vBulletin 3.5.X forum of vBadvanced Forums.

    This thread is located at:
    http://www.vbadvanced.com/forum/show...6&goto=newpost

    Here is the message that has just been posted:
    ***************
    For those having a problem with the welcome block not posting to the right file,
    apply the fix posted here
    (http://www.vbadvanced.com/forum/show...2&postcount=5). (Don't
    revert your navbar template, just make sure that's what you have for the Form
    Code option).

    If your homepage is simply not showing you as logged in even though you are,
    that is a cookie issue that should be able to be fixed by following the
    instructions in the FAQ forum.
    ***************
    ~~~~~~~~~~~~~

    Why doesn't your post show up here?

    Thanks.

  15. #15
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: cmps logout error

    That's because I was checking something in this thread so I could post a link to it, but accidentally replied to this thread instead of the one I was reading.

  16. #16
    Join Date
    Sep 2005
    Posts
    27

    Default Re: cmps logout error

    Quote Originally Posted by Brian
    I could have swore that was corrected in a previous version, but apparently not. If you'll look in your adv_portal_welcomeblock template for 2 instances of this code:
    Code:
    login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]
    And replace both with this:
    Code:
    login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]
    Then that should take care of the problem.
    This correct my error!
    THANKS A LOT Brian

  17. #17
    Join Date
    May 2005
    Posts
    111

    Default Re: cmps logout error

    Quote Originally Posted by Brian
    That's because I was checking something in this thread so I could post a link to it, but accidentally replied to this thread instead of the one I was reading.

    {$vbulletin->options[bburl]}/ seems to have become my new best friend - Ive found that the search module and the welcome module both seem to show the 'old' code and subsiquently I had issues with them... Ive also had to add {$vbulletin->options[bburl]}/ to my shoutbox template so that the incorrectly pointing .php pointed to the right place.

    all i have problems with now is why my search and quicklink buttons dont seem to work anymore - the search is pointing in the right direction (ie - /forum/search.php but when I click that link it just does nothing - no drop down menu ?

    this is very strange because I have a second page that acts as a staff introduction page ... this too has the default navbar/header - but those search and quick links work fine from there ?


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Login and logout probs
    By SalTheWop in forum Troubleshooting / "How do I..." Questions
    Replies: 3
    Last Post: 05-18-2005, 08:12 PM
  2. Logout not working
    By -peace- in forum Troubleshooting / "How do I..." Questions
    Replies: 3
    Last Post: 05-16-2005, 12:46 PM
  3. Logout Cookie Error
    By deb0 in forum Troubleshooting / "How do I..." Questions
    Replies: 4
    Last Post: 10-21-2004, 09:49 PM
  4. Logout --> Portal
    By WhiteOx in forum Troubleshooting / "How do I..." Questions
    Replies: 5
    Last Post: 07-03-2004, 09:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •