• Resolved cveal

    (@cveal)


    I saw that not all security headers were installed on one of my sites, so I went to Really Simple SSL (which I’d already installed a while ago) and I can’t access the settings to it. It says “Sorry, you are not allowed to access this page.” even though I am an admin. So now I’m unsure of 1. How to access the settings and 2. How to add the rest of the security headers

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    It looks like the new capability ‘manage_security’ hasn’t been added to the administrator role. Can you check with a Role Manager plugin if the administrator role has this capability?

    Hi @cveal,

    We haven’t heard from you in a while, is the issue resolved? We are happy to help you further.

    Kind regards, Kim van Dijk

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @cveal

    This is a confirmed fix for any edge case situations where an administrator role is not existent

    https://github.com/Really-Simple-Plugins/really-simple-ssl/tree/fallback-in-case-administrator-does-not-exist

    Hi @rogierlankhorst I have the same issue, probably because it’s a website I’m just getting in charge and I created my admin account directly in database. I was at first relieved that there is a solution but the github link leads to 404 error page. Could you fix the link please?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Because it has been confirmed and tested, it has been merged in the latest release. if you are updated to the latest version, this fix is already included. You can use a role manager plugin to manage your capabilities in more detail.

    Plugin is the latest version one. I installed “User Role Editor” but there isn’t any manage_security like capability (also searched in database). I logged in with the former website administrator account, but I still can’t access Really Simple SSL setting, same message. Of course, I can’t deactivate the plugin because I don’t have rights to do so, and I guess that disabling it by FTP will crash the site, isn’t it? So, I’m stuck… Any suggestion?

    • This reply was modified 2 years, 5 months ago by C-Tomoe.
    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Can you try adding this to your theme’s functions.php? This should add the capability:

    function rsp_example_role_caps()
    {
        $role = get_role('administrator');
        $role->add_cap('manage_security', true);
    }
    add_action('init', 'rsp_example_role_caps', 11);

    Great! Thanks a lot @rogierlankhorst !

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can’t access settings to SSL’ is closed to new replies.