• Resolved doubleedesign

    (@doubleedesign)


    Hi there,

    My account on a site has the Administrator role, but when I attempt to access the WP Store Locator settings (via the Plugins page, as I don’t see an option under the Store Locator menu) I get the following error message:

    You do not have sufficient permissions to access this page.

    Help would be appreciated 🙂

    https://ww.wp.xz.cn/plugins/wp-store-locator/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you logout, login again and try again? Do you have any user role plugins running that you used to modify anything?

    Thread Starter doubleedesign

    (@doubleedesign)

    Thanks for the quick reply!

    Can you logout, login again and try again?

    Tried, no luck 🙁

    Do you have any user role plugins running that you used to modify anything?

    Yes, I use User Role Editor but deactivating it didn’t solve the issue.
    I did use that to modify permissions for this plugin so that editors can add, edit, and delete stores, but there was not a capability listed referring to the settings page (as far as I could tell).

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you use the role editor plugin to make sure the current admin has the ‘manage_wpsl_settings’ capabilities.

    If you create a new user and give him the Store Locator Manager role, does it work then? If you create a second admin account, does that allow you to access it.

    Thread Starter doubleedesign

    (@doubleedesign)

    Strangely, User Role Editor doesn’t show the manage_wpsl_settings capability, nor is Store Locator Manager a role option when creating a new user. I have checked that I have the latest version of the plugin (2.2.3).

    As a workaround I have added the capability manually in my functions.php as follows:

    function doublee_fix_caps() {
        $role = get_role( 'administrator' );
        $role->add_cap( 'manage_wpsl_settings' );
    }
    add_action( 'admin_init', 'doublee_fix_caps');

    Probably not the ideal solution but it works! 🙂

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Something must have gone wrong during the install, but at least it’s working now.

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

The topic ‘Cannot access settings page’ is closed to new replies.