Up to 50 percent off

WPUF logout error

This topic contains 3 reply and 2 voices, and was last updated by Chris Swede 10 years, 2 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
July 24, 2014 at 1:34 am 24033
Chris Swede 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.
August 3, 2014 at 6:09 pm 24437
Sk Sk

Hello Chris,

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

Thank you.

August 3, 2014 at 7:41 pm 24448
Chris Swede Chris Swede

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();
     //   }
    // }
September 2, 2014 at 9:38 pm 26186
Chris Swede Chris Swede

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 3 Posts - 1 through 3 (of 3 total)