Title: Error logs
Last modified: November 14, 2021

---

# Error logs

 *  [davidblood](https://wordpress.org/support/users/davidblood/)
 * (@davidblood)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/error-logs-23/)
 * Hi,
 * An error is spamming my error_log file with over 2GB in side! Might be worth 
   taking a look?
 * `[14-Nov-2021 04:07:48 UTC] PHP Warning: in_array() expects parameter 2 to be
   array, null given in /public_html/wp-content/plugins/administrator-access-to-
   pmpro-protected-content/class-adminOverride.php on line 143`
 * Cheers

Viewing 1 replies (of 1 total)

 *  Thread Starter [davidblood](https://wordpress.org/support/users/davidblood/)
 * (@davidblood)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-logs-23/#post-15498493)
 * More…
 *     ```
       [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
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Error logs’ is closed to new replies.

 * ![](https://ps.w.org/administrator-access-to-pmpro-protected-content/assets/icon-
   256x256.jpg?rev=1947066)
 * [Administrator Access to PMPro Protected Content](https://wordpress.org/plugins/administrator-access-to-pmpro-protected-content/)
 * [Support Threads](https://wordpress.org/support/plugin/administrator-access-to-pmpro-protected-content/)
 * [Active Topics](https://wordpress.org/support/plugin/administrator-access-to-pmpro-protected-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/administrator-access-to-pmpro-protected-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/administrator-access-to-pmpro-protected-content/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [davidblood](https://wordpress.org/support/users/davidblood/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/error-logs-23/#post-15498493)
 * Status: not resolved