• Resolved WP Coder

    (@wpcoderca)


    First off I’m running this on a multisite in case that matters. After updating the latest version of the plugin I’m not able to dismiss the “Thanks for updating to Really Simple SSL 6.0! Check out our new features on the settings page.” notification. When I click on the Dismiss button I get redirected to “Sorry, you are not allowed to access this page.”. There’s a permissions issue for some reason.

    I just updated WooCommerce and was able to dismiss those notifications fine along with a few others.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi @wpcoderca,

    Thanks for reporting. The reason you see this is because SSL menu’s on subsites have been dropped. There’s only one SSL menu now, on the network admin.

    So there should not be a “thanks for updating” notice on subsites.

    I’ve create a branch which resolves this issue:

    https://github.com/Really-Simple-Plugins/really-simple-ssl/tree/remove-update-notices-on-subsites-in-ms

    Let me know if this works for you!

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    If you need to add the manage_security capability to a role, you can use this snippet (in this case the administrator):

    function rsssl_add_manage_security_capability(){
        $capability = 'manage_security';
        $roles = apply_filters('rsssl_add_manage_security_capability', array('administrator') );
        foreach( $roles as $role ){
            $role = get_role( $role );
            if( $role && !$role->has_cap( $capability ) ){
                $role->add_cap( $capability );
            }
        }
    }
    add_action('admin_init', 'rsssl_add_manage_security_capability');

    You can put it in your theme’s functions.php, and remove it after running.

    Hi, we have the same problem.

    This snappet in theme’s functions.php caused in our case serious error and the website crashed.
    We do not have acces to settings on our sites with WooCommerce (e-shops). We are unable to have last versions because of that. We are still waiting for fix (it did not work from branche https://github.com/Really-Simple-Plugins/really-simple-ssl/tree/remove-update-notices-on-subsites-in-ms ).

    We are on version 4.0.15 from our backup, because we want to see settings…

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    @superbbar another method to add this capability to the administrator is to use a User Role plugin.

    I am not sure if installing more and more plugins on web is a solution. It could caused much more problems with web. We just in new versions do not see SSL in Settings, it dissapeared or we are not allowed to see it. And we thinks there is problem in Really Simple SSL. Do you think that it will be solved in future versions? Is there any possibility to write to you directly on e-mail or somewhere? We could show you our cases more detailed. Thanks

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    The User Role plugin can be removed after adding the capability, so doesn’t need to be kept installed. This capability has been added several months ago, and we have received only a few support requests about it. In those cases we recommend to add the capability either with some lines of code, or with a plugin.

    You can reach us through our support form: https://really-simple-ssl.com/support

    Then we can assist you further with the issue.

    OK, thanks. User Role Editor and capability “manage_security” helped. Hopefully it will work even after deleting plugin User Role Editor.

    Thread Starter WP Coder

    (@wpcoderca)

    The code you suggested I add to the functions file gave my sites a critical error as well. I already had “User Role Editor” installed so I checked and the Administrator already has the “manage_security” capability.

    The account that I use to access the sites is a Super Admin role but that’s not specifically shown as an option to change.

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I’m sorry the code I posted contains a function which is also included in the plugin, which causes a duplicate function error. A Super Admin is a specific kind of administrator as far as I know.

    Here’s a changed version.

    function rsp_add_manage_security_capability(){
        $capability = 'manage_security';
        $roles = apply_filters('rsssl_add_manage_security_capability', array('administrator') );
        foreach( $roles as $role ){
            $role = get_role( $role );
            if( $role && !$role->has_cap( $capability ) ){
                $role->add_cap( $capability );
            }
        }
    }
    add_action('admin_init', 'rsp_add_manage_security_capability');
    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    @wpcoderca sorry, I got confused by the two threads crossing each other. In your case it’s not a permissions issue, but the wrong notice on a subsite. The branch I posted here does not show the notice in subsites, which should resolve your issue. We will include this in the 6.0.9 release, expected end of this week.

    Thread Starter WP Coder

    (@wpcoderca)

    @rogierlankhorst no problem. If the fix is coming this week I’ll just wait for the plugin to be updated. It’s not causing any problems, just more of an annoyance that the notices can’t be dismissed on sub-sites.

    Thread Starter WP Coder

    (@wpcoderca)

    I just noticed it had already been released. I updated and it looks like the issue has been resolved.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Sorry, you are not allowed to access this page.’ is closed to new replies.