• Resolved Generosus

    (@generosus)


    Inadvertently, we disabled Rank Math’s Role Manager for Administrator thus disabling access to most of the plugin’s admin features.

    The only way we could recover from this condition was to restore our website from a back-up.

    Is there a filter or some other way we can do this (i.e., restore our Admin Role Manager capability)?

    Details: https://prnt.sc/BqAusiDm05AQ

    Also, is there a way we can prevent this from happening again (say, via filter or by updating your plugin to generate a message prior to this action)?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @generosus,

    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

    We currently don’t have any filter code to remedy this type of situation. However, there are ways to regain access.

    Please take a complete backup of your site and the database first.

    Deactivate Rank Math from WordPress Dashboard > Plugins > Installed Plugins and Activate again. This should fix the issue for you.

    If that doesn’t help, you got to use phpMyAdmin, and in the wp_options (here wp_ is the table prefix, which might be different for your site), search for the wp_user_roles option name, and in the option value, you have to find:
    "rank_math_role_manager";b:0;

    and replace it with
    "rank_math_role_manager";b:1;

    Lastly, if the issue persists or for your future reference, you may refer to this KB guide: https://rankmath.com/kb/sorry-you-are-not-allowed-to-access-this-page/. Please be cautious as one of the methods here requires you to completely remove all Rank Math data.

    Unfortunately, the methods above are your solution at the moment when you experience this issue again.

    Hope that helps.

    Thread Starter Generosus

    (@generosus)

    Hi @rankmathteam,

    Thanks for the reply and useful information.

    As important as this topic is (for us, at least), it behooves Team Rank Math to incorporate a feature into its plugin to prevent this from happening. The options you provided to restore the Role Manager functionality to Administrators are cumbersome.

    Specifically, here’s what we recommend:

    1. When an Administrator disables the Role Manager for Administrators, upon saving the new setting, a pop-up or message should appears stating something like: “Are you sure you want to do this? Administrator role settings will be disabled.”
    2. Optional: Depending on customer feedback, get rid of (i.e., do not display) that setting option for Administrators.

    Again, thank you!

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @generosus,

    Thank you for the feedback. We have shared this with the devs and they will surely consider this to improve the Role Manager module.

    Don’t hesitate to get in touch in case you need our assistance with anything else.

    We are here to assist!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Re-Enable Role Manager for Administrator’ is closed to new replies.