• Resolved itsseanl

    (@itsseanl)


    [18-Sep-2023 22:06:25 UTC] PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /app/wp-includes/class-wp-user-query.php:483Stack trace:#0 /app/wp-includes/class-wp-user-query.php(483): array_filter(NULL)#1 /app/wp-includes/class-wp-user-query.php(79): WP_User_Query->prepare_query(Array)#2 /app/wp-includes/user.php(775): WP_User_Query->__construct(Array)#3 /app/wp-includes/user.php(1668): get_users(Array)#4 /app/wp-admin/includes/meta-boxes.php(977): wp_dropdown_users(Array)#5 /app/wp-admin/includes/template.php(1443): post_author_meta_box(Object(WP_Post), Array)#6 /app/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))#7 /app/wp-admin/post.php(206): require('/app/wp-admin/e...')#8 {main}thrown in /app/wp-includes/class-wp-user-query.php on line 483

    I have a website updated to PHP 8.1 and wordpress 6.3.1. I’m getting the above error inside /wp-admin on the pages overview page, as well as inside individual pages.

    Disabling all other plugins has no effect, it only resolves when I disable this ‘disable gutenberg’ plugin. Switching to a default theme also has no effect, the errors persist.

    Downgrading to PHP 7.4 prevents it from being a fatal error, but the error is still present.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Starr

    (@specialk)

    The plugin is developed on PHP 8.1 and there are no errors on default WordPress install. Or, if you can provide steps to repeat the error on default WordPress, it would enable me to investigate and try to resolve any issue asap, thank you.

    Plugin Author Jeff Starr

    (@specialk)

    Hi @itsseanl, just wanted to follow up with this. It’s been a while with no reply, so I hope the issue is resolved? Or if there is anything I can do to help, please let me know. Thank you.

    Thread Starter itsseanl

    (@itsseanl)

    Hi Jeff,

    apologies for not getting back to you quickly! Thank you for taking the time to respond. As you said, I do believe this must be an issue with our custom theme. I realized it’s only happening in relation to default wordpress pages, and none of our custom post types, so I’ve narrowed it down a little bit at least, but haven’t had time to revisit the issue. We must have some code that’s conflicting with this plugin.

    Plugin Author Jeff Starr

    (@specialk)

    Okay thanks for the follow-up. I’m gonna go ahead and mark this thread as resolved to help keep things organized. Feel free to post again if needed, I’m always glad to help. Thank you, @itsseanl.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error in wp-admin on all pages’ is closed to new replies.