caseproof / members

Members WordPress plugin.
GNU General Public License v2.0
80 stars 35 forks source link

PHP Fatal Error Uncaught TypeError: in_array() - Seem to be occurring after update to latest version (3.2.0) #71

Closed rhughesiu closed 2 years ago

rhughesiu commented 2 years ago
PHP Fatal error Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /groups/tmsdev/web/wp-content/plugins/members/admin/functions-admin.php:258
Stack trace:
#0 /groups/tmsdev/web/wp-content/plugins/members/admin/functions-admin.php(258): in_array()
#1 /groups/tmsdev/web/wp-content/plugins/members/admin/class-notifications.php(372): members_is_admin_page()
#2 /groups/tmsdev/web/wp-includes/class-wp-hook.php(303): Members\Admin\Notifications->enqueues()
#3 /groups/tmsdev/web/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#4 /groups/tmsdev/web/wp-includes/plugin.php(470): WP_Hook->do_action()
#5 /groups/tmsdev/web/wp-admin/admin-header.php(102): do_action()
#6 /groups/tmsdev/web/wp-admin/update-core.php(1016): require_once('...')
#7 /groups/tmsdev/web/wp-admin/network/update-core.php(13): require('...')
#8 {main}
thrown in /groups/tmsdev/web/wp-content/plugins/members/admin/functions-admin.php on line 258
rhughesiu commented 2 years ago

@renventura - That seemed to resolve the issue. Thank you so much for remedying that and with such a quick turnaround as well.

renventura commented 2 years ago

You're welcome @rhughesiu. Thanks for the report.