• Resolved davidblood

    (@davidblood)


    Hi,

    Is there any hooks or functionality to allow admins access regardless? I currently use Administrator Access to PMPro Protected Content. However, it seems to be broken in the recent update of Paid Memberships Pro has caused errors.

    Any plans to build this direct into Paid Memberships Pro?

    [26-Mar-2022 14:17:11 UTC] PHP Warning:  Attempt to read property "roles" on string in /wp-content/plugins/administrator-access-to-pmpro-protected-content/class-adminOverride.php on line 143
    [26-Mar-2022 14:17:11 UTC] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /wp-content/plugins/administrator-access-to-pmpro-protected-content/class-adminOverride.php:143
    Stack trace:
    #0 /wp-content/plugins/administrator-access-to-pmpro-protected-content/class-adminOverride.php(143): in_array()
    #1 /wp-content/plugins/administrator-access-to-pmpro-protected-content/class-adminOverride.php(112): E20R\PMPro\Access_Rights\adminOverride->adminAccessPermitted()
    #2 /wp-includes/class-wp-hook.php(307): E20R\PMPro\Access_Rights\adminOverride->shortcodeAccessPermitted()
    #3 /wp-includes/plugin.php(189): WP_Hook->apply_filters()
    #4 /wp-content/plugins/paid-memberships-pro/shortcodes/membership.php(84): apply_filters()
    #5 /wp-includes/shortcodes.php(356): pmpro_shortcode_membership()
    #6 [internal function]: do_shortcode_tag()
    #7 /wp-includes/shortcodes.php(228): preg_replace_callback()
    #8 /wp-includes/class-wp-hook.php(307): do_shortcode()
    #9 /wp-includes/plugin.php(189): WP_Hook->apply_filters()
    #10 /wp-includes/post-template.php(253): apply_filters()
    #11 /wp-content/themes/oceanwp/partials/page/article.php(20): the_content()
    #12 /wp-includes/template.php(772): require('/home/tlguzfgc/...')
    #13 /wp-includes/template.php(716): load_template()
    #14 /wp-includes/general-template.php(204): locate_template()
    #15 /wp-content/themes/oceanwp/partials/page/layout.php(20): get_template_part()
    #16 /wp-includes/template.php(772): require('/home/tlguzfgc/...')
    #17 /wp-includes/template.php(716): load_template()
    #18 /wp-includes/general-template.php(204): locate_template()
    #19 /wp-content/themes/oceanwp/page.php(36): get_template_part()
    #20 /wp-includes/template-loader.php(106): include('/home/tlguzfgc/...')
    #21 /wp-blog-header.php(19): require_once('/home/tlguzfgc/...')
    #22 /index.php(17): require('/home/tlguzfgc/...')
    #23 {main}
      thrown in /wp-content/plugins/administrator-access-to-pmpro-protected-content/class-adminOverride.php on line 143

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allow Admin Bypass Access?’ is closed to new replies.