Home Forums Plugin Support WP User Frontend Pro WPUF logout error

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Chris Swede 4 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24033

    Chris Swede
    Member
    Post count: 56

    After updating WPUF to 2.2.3 from 2.1.9 normal WordPress logout is not working. First the message “You are attempting to log out of [site name] Do you really want to log out?” shows. After pressing OK the browser gets stuck after a while and displays “Firefox has detected that the server is redirecting the request for this address in a way that will never complete”. This happens both when logged in as admin WordPress backend as well as when logged in to frontend. The frontend login is by means of the plugin Super Socializer which works great together with WPUF. Only logout gets messed up. When deactivating WPUF all works fine, and 2.1.9 also worked fine.

    #24437

    Sk
    Moderator
    Post count: 371

    Hello Chris,

    please navigate to admin panel > wpuf > settings > login / registration and set login page option

    Thank you.

    #24448

    Chris Swede
    Member
    Post count: 56

    Thank you for your help. The login is in a menu on every page by means of WordPress Super Socializer plugin so your suggestion is not an alternative. Commenting out parts of WPUF file login.php fixes the issue, but perhaps you can make it an option to disable WPUF filtering of logout url?

    Comment out on line 28:

    // add_filter( 'logout_url', array($this, 'filter_logout_url'), 10, 2 );

    and from line 360:

    // function process_logout() {
         //   if ( isset( $_GET['action'] ) && $_GET['action'] == 'logout' ) {
         //       check_admin_referer('log-out');
         //      wp_logout();
    
         //       $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : add_query_arg( array( 'loggedout' => 'true' ), $this->get_login_url() ) ;
         //       wp_safe_redirect( $redirect_to );
         //       exit();
         //   }
        // }
    #26186

    Chris Swede
    Member
    Post count: 56

    Thanks for addressing the above issue in the latest update to 2.2.4 and for improving WPUF with the ability to add image caption as well. Great work!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘WPUF logout error’ is closed to new replies.