Support » Plugin: Admin Columns » Error: Sorry, you are not allowed to access this page

  • Resolved tommy83

    (@tommy83)


    I installed your latest version into a fresh wordpress setup.
    Tested wordpress optimized nginx hosting.
    Server with PHP 7.2 and PHP 7.3.

    Problem:
    WordPress Backend -> Plugins -> Admin Columns -> Settings.

    Its open url:
    domain.de/wp-admin/options-general.php?tab=columns&page=codepress-admin-columns

    But URL does not show settings page pf your plugin. I get error:
    Du bist leider nicht berechtigt, auf diese Seite zuzugreifen.
    englisch: Sorry, you are not allowed to access this page.

    So i tried to reset Reset Roles and Capabilities with this plugin:
    https://wordpress.org/plugins/reset-roles-and-capabilities/

    But this plugin also not solve my problem. How to see solve this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • add_action( ‘init’, function () {
    global $wp_roles;

    $wp_roles->add_cap( ‘administrator’, ‘manage_admin_columns’ );
    } );

    this solve my problem

    Plugin Contributor dungengronovius

    (@dungengronovius)

    This will reset the settings as it is intended to be.
    Make sure to remove the snippet after everything works as expected.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.