• Resolved Parmen

    (@parmen)


    Sorry to raise this question again but how to allow Subscribers, Authors and Editors to login if the login page is out of reach in Maintenance mMde. I am using shortcode for login and registration, not the original wp-login.php. Put the login and registration pages in the list with exclusions but no effect at all.

    Should I always disable the plugin in the hard way in order to login? And what about those who cannot disable it.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello @parmen,

    1. Please post a screenshot of the settings.
    2. Also, if you’re using a cache plugin or a service like Cloudflare, make sure you clear the page cache after you save the settings.


    George

    Thread Starter Parmen

    (@parmen)

    Thanks, here it is

    https://snipboard.io/hZt0bS.jpg

    @parmen Oh, I believe it’s because of the language (I suppose it’s Russian?).

    So, let’s try to make the exclude list work with Russian too.

    1. Go to /wp-content/plugins/wp-maintenance-mode/includes/classes/.
    2. Open wp-maintenance-mode.php, search for function check_exclude and replace this line:
    $request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';

    with this line:
    $request_uri = isset($_SERVER['REQUEST_URI']) ? rawurldecode($_SERVER['REQUEST_URI']) : '';
    3. Save the file and clear the page cache (if any).


    George

    Thread Starter Parmen

    (@parmen)

    I have this under the function

    $request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';

    Thread Starter Parmen

    (@parmen)

    Still doesn’t work with

    $request_uri = isset($_SERVER['REQUEST_URI']) ? rawurldecode['REQUEST_URI'] : '';

    And the Latin terms also fail to open

    OK, I got it – will change the Cyrillic names to Latin wherever needed.

    • This reply was modified 3 years, 10 months ago by Parmen.

    @parmen I tested it with Cyrillic characters (after I applied that change), and it worked fine.

    So, you should double-check if you applied the change correctly.

    Before: $request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';

    After: $request_uri = isset($_SERVER['REQUEST_URI']) ? rawurldecode($_SERVER['REQUEST_URI']) : '';

    Thread Starter Parmen

    (@parmen)

    Thank you!

    It didn’t work with Latin terms because I changed only the slug but had also to edit the permalinks.

    Thank you again for your help!

    You’re welcome. Now you are using Latin characters instead of Cyrillic? The Cyrillic characters still not working on your end?

    Thread Starter Parmen

    (@parmen)

    Yes to the first question, and double negation to the second one – no, on the contrary, slugs in Cyrillic are working very well.

    Good call, probably should be implemented in some future release. I suppose it will hold true for Latin with diacritical marks too, like de, se, tk, or maybe even Chinese, idk ??

    Glad to hear that! I will include the patch in the next release.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘User Roles and Login’ is closed to new replies.