• 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:483
    
    Stack 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.

    • This topic was modified 1 year, 6 months ago by itsseanl.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter itsseanl

    (@itsseanl)

    I meant to post this message to the ‘disable gutenberg’ plugin support. I did not go through the full disabling process with this plugin, however I was seeing the same error when I tried to switch to this one.

    • This reply was modified 1 year, 6 months ago by itsseanl.

    Hi @itsseanl,

    If you reproduce the same issue with both plugins, it is likely unrelated to the plugin itself.

    Have you also tried to change the theme when you tested?

    Thread Starter itsseanl

    (@itsseanl)

    Sorry again for double posting! Was a long day lol. I haven’t had time to revisit the issue yet, but yes it must be an error that we have in our custom theme.

    Moderator jordesign

    (@jordesign)

    Thanks for clarifying @itsseanl – with that being the case I’ll mark this as resolved. All the best with the custom theme.

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