• Resolved karelj

    (@karelj)


    Hi,
    I have installed your plugin and although it perfectly blocks wp-admin and wp-login.php and also shows a login page on the uri (let’s say my-cms-login), it redirects to /404 when I try to login.

    I’ve checked the network activity and after doing post to my-cms-login it actually tries to GET /wp/wp-admin.

    Some info:
    – WordPress is installed in the /wp directory
    – Running on Nginx
    – Bedrock Boilerplate
    – All plugins disabled, cache cleared, tried multiple devices

    Any hints?

    Thanks,
    Karel

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author NicolasKulka

    (@nicolaskulka)

    You have configured which connection url?

    By default, /login

    Thread Starter karelj

    (@karelj)

    Wow, you’re fast 🙂 I have changed only the login url in Settings -> General. Is there any other configuration I need to do?

    Plugin Author NicolasKulka

    (@nicolaskulka)

    In Settings > WPS Hide Login

    Thread Starter karelj

    (@karelj)

    Sorry, that was a typo. Yes, I have edited that in Settings -> General (shows the same stuff as Settings -> WPS Hide Login).

    As mentioned, I can access https//mysite.com/my-cms-login. It does not work only once I hit the login button.

    Thread Starter karelj

    (@karelj)

    The redirect to 404 happens after @require_once ABSPATH . 'wp-login.php'; in wp_loaded() function … if that helps …

    Also, if I check the admin_url() right before that it says it’s /wp/wp-admin/

    I tried to debug the wp_login.php a bit and there is a $_REQUEST[‘redirect_to’] set to https://mysite.com/wp/wp-admin/. This is handed over as a hidden attribute in the login form, which probably looks fine.

    Then the only place that throws /404 in your code is wp_loaded() the first condition. is_admin() is true, is_user_logged_in() is false and that’s where it goes to 404.

    Any idea what might cause this to happen?

    • This reply was modified 8 years, 3 months ago by karelj.
    • This reply was modified 8 years, 3 months ago by karelj. Reason: more details
    Plugin Author NicolasKulka

    (@nicolaskulka)

    so https//mysite.com/wp/my-cms-login ??

    Thread Starter karelj

    (@karelj)

    The problem was with a constant setting that was outside your code.

    • This reply was modified 8 years, 3 months ago by karelj.

    How was your solution?

    Plugin Author NicolasKulka

    (@nicolaskulka)

    Okay, what was the problem? it could help other people.

    I can not enter with the address entered,
    but wp-admin blocks it

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Login is not functional’ is closed to new replies.