Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Matt Stone

    (@mattstone)

    I had this problem too but accessing the url directly seems to indicate I don’t have permission when accessing https://yourdomain.com/wp-admin/tools.php?page=better-search-replace

    Looking at the way the plugin filters by user capability it seems to be using ‘install_plugins’ as the capability needed to load the plugin. This seems like an oversight by the plugin developer as on my WordPress installation (and on plenty of others) I have plugin installation disabled via the admin as all plugins are managed via composer using wpackagist. Quite possible some web hosts also manage plugins outside wordpress or via WP-CLI.

    As a hot fix to workaround I changed ‘install_plugins’ to ‘manage_options’ in th following plugin files:

    /includes/class-bsr-admin.php – Line 84 & Line 263
    /better-search-replace.php – Line 56

    • This reply was modified 5 years ago by Matt Stone.
    Matt Stone

    (@mattstone)

    I had this problem too but accessing the url directly seems to indicate I don’t have permission when accessing https://yourdomain.com/wp-admin/tools.php?page=better-search-replace

    Looking at the way the plugin filters by user capability it seems to be using ‘install_plugins’ as the capability needed to load the plugin. This seems like an oversight by the plugin developer as on my WordPress installation (and on plenty of others) I have plugin installation disabled via the admin as all plugins are managed via composer using wpackagist. Quite possible some web hosts also manage plugins outside wordpress or via WP-CLI.

    As a hot fix to workaround I changed ‘install_plugins’ to ‘manage_options’ in th following plugin files:

    /includes/class-bsr-admin.php – Line 84 & Line 263
    /better-search-replace.php – Line 56

    • This reply was modified 5 years ago by Matt Stone.
Viewing 2 replies - 1 through 2 (of 2 total)