• Resolved margr

    (@mar1984)


    Hello,

    I just detect that including the following string (?login) at the end of the url, I can see the page, despite “coming soon” is active. I have tried different websites with the same result, is it a bug? How can it be solved?

    Thanks in advance,
    Mar.

    PS. Excuse my English.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter margr

    (@mar1984)

    Hello again,

    I need a temporary solution, so I have implemented this code, I don’t know if is useful and correct, so I share here:

    add_action( 'template_redirect', function()
    {
        global $seed_csp4_settings;
        extract($seed_csp4_settings);
        
        $findme="?login";
        $current_url = $_SERVER['REQUEST_URI'];
    
        if( !isset($status) ){
            return false;
        }
    
        if( ((!empty($status) && $status === '1') || (!empty($status) && $status === '2')) )
        {
            if( !is_user_logged_in() )
            {
                if( stripos($current_url, $findme)!==false )
                {
                    wp_redirect( home_url('/wp-login.php') );
                    exit();
                }
            }
        }
    });

    If I have to make a correction to improve the code, please let me know, please.
    I hope this helps, while a definitive solution is found.

    Thank you.

    Regards,
    Mar.

    • This reply was modified 5 years ago by margr.
    Plugin Author SeedProd

    (@seedprod)

    Look under the advanced tab and check, “exclude default urls”

    that will fix it!

    Thread Starter margr

    (@mar1984)

    Oh, ok!! Thank you very much, sorry for the inconvenience.

    It was easier 😉

    Best regards,
    Mar.

    • This reply was modified 5 years ago by margr.
    Plugin Author SeedProd

    (@seedprod)

    no problem 🙂

    7/11/19

    Actually it does not fix it when wordfence with firewall is enabled. At least I think that is what is causing the non display of the maintence mode

    What happens when the maintenance or coming soon mode is enabled, wordfence stops the enabled action from completing on the front end. The backend shows maintenance mode enabled but the front end shows the normal website with 1 plugin update in the admin bar. But clicking on the update shows all plugins are current. This is the uncompleted action of the maintenance mode or coming soon mode page trying to load IMO.

    Plugin Author SeedProd

    (@seedprod)

    @flyfisher842 please open a new thread as your issue is probably not related tot he one above. Make sure to include your url.

    @seedprod All is good. I forgot to logout to check the maintenance page. Forgot to insert brain this morning too.

    Thanks for your patience my IMO was way off.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Site is shown, despite Coming Soon, with string in url’ is closed to new replies.