• Media Library, running at PHP 8.2.x

    https://i.imgur.com/m7qXGFs.png

    1. wp-includes/post.php:3298
    2. preg_match()
      wp-includes/post.php:3298
    3. wp_match_mime_types()
      wp-admin/includes/class-wp-media-list-table.php:138
    4. WP_Media_List_Table->get_views()
      wp-admin/includes/class-wp-media-list-table.php:273
    5. WP_Media_List_Table->views()
      wp-admin/upload.php:435
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I don’t see any such deprecated notice in my test site, also running PHP 8.2. There shouldn’t be a null value element in the MIME types array being passed as parameter #2 for preg_match(). I suspect your theme or a plugin has altered the MIME types array in an improper manner.

    As a test, please deactivate all plugins and switch to a default Twenty* theme. The notice should go away. Isolate the cause by restoring your normal theme and plugins, one at a time, testing after each.

Viewing 1 replies (of 1 total)
  • The topic ‘Passing null to parameter #2 ($subject) of type string is deprecated’ is closed to new replies.