Popups don't finish loading

This topic contains 6 replies, has 3 voices, and was last updated by  Patrik 4 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #6474

    lbandy
    Free User
    Post count: 3

    Hello,

    I’m looking for a reliable signup/login popup, but I’m not finding a good solution. I hoped UsersWP will be able to do the job out of the box, but when I press the Login/Register button in the menu I only see a forever loading popup with no content in it, please see attachment. Any ideas how can I debug it to see what’s causing the issue?

    Thank you,
    Andras

    #6476

    Guust
    Moderator
    Post count: 29970

    Please post your URL and WP admin details in a private reply and we will have a look at your settings.
    Thanks

    #6477

    lbandy
    Free User
    Post count: 3
    This reply has been marked as private.
    #6478

    Patrik
    Moderator
    Post count: 1971

    Hi,

    It looks like on your site admin-ajax.php is showing status 302 means permanent redirect. Is there any plugin or functionality used on your site which is doing this or maybe security added on your site? As the request sent to the admin-ajax.php file is not handled and so no response is received and which is the reason showing the loading screen. You can ask your hosting provider or may try to deactivate all the plugins one by one to troubleshoot the issue.

    Regards,
    Patrik

    #6479

    lbandy
    Free User
    Post count: 3

    Hi Patrik,

    Thanks for looking into the issue. Could you elaborate please how you were able to see the error message? Also could you mention what’s the url the plugin uses to reach admin-ajax.php exactly, so I can take a look at our server config to see if it falls into any redirect directives?

    Thanks again!

    #6480

    lbandy
    Free User
    Post count: 3

    Meanwhile I did a quick search and found a topic on stackoverflow:
    https://stackoverflow.com/questions/9408334/wordpress-admin-ajax-results-in-error-302-redirect

    The issue was caused by a snippet I added from the bbPress codex recently:
    /**
    * Redirect back to homepage and not allow access to
    * WP backend for Subscribers.
    */
    function rkk_redirect_admin(){
    if ( ! current_user_can( ‘edit_posts’ ) ){
    wp_redirect( site_url() );
    exit;
    }
    }
    add_action( ‘admin_init’, ‘rkk_redirect_admin’ );

    Removing this snippet made the plugin to work correctly. Thanks again for your help!

    #6481

    Patrik
    Moderator
    Post count: 1971

    Good to know the issue is resolved.

    Regards,
    Patrik

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket