WordPress.org

Forums

Search and Replace
You do not have sufficient permissions to edit plugins for this blog. (6 posts)

  1. Paul de Wouters
    Human Made
    Posted 4 years ago #

    I get this error when I try to access the plugins settings :You do not have sufficient permissions to edit plugins for this blog.
    I'm logged in as admin

  2. Christiann
    Member
    Posted 4 years ago #

    Try opening search-and-replace.php and editing this line:

    if ( current_user_can('edit_plugins') ) {

    Change to:

    if ( current_user_can('delete_plugins') ) {

    This fixed the problem for me. The cause was that I had disabled the edit_plugins user capability on the site with another plugin.

  3. traceelements
    Member
    Posted 4 years ago #

    I am also getting this error message, but xiann's solution did not work for me. Any ideas?

  4. Christiann
    Member
    Posted 4 years ago #

    Are you logged in as admin? If so you should have the correct permissions, but you may want to try something else instead of edit_plugins or delete_plugins. Maybe try this?

    if ( current_user_can('install_plugins') ) {

    Here's the whole list of Capabilities: http://codex.wordpress.org/Roles_and_Capabilities

  5. traceelements
    Member
    Posted 4 years ago #

    No, that didn't work. Thanks for trying, though. I am logged in as admin, so I don't know what's going on.

  6. SiteSubscribe
    Member
    Posted 3 years ago #

    This issue was posted 4 months ago.

    Any resolution?

    I'm having the same problem, on a few different WP Multisite installs.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic