WordPress 5.8 / 5.7 media library issue with PHP 8.0
-
We have the problem on all of our WordPress pages that no images are displayed in the grid view of the media library and sometimes none can be uploaded.
When we switch to the list view, the images are displayed with the following error:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /html/wordpress/wp-includes/media.php:779 Stack trace: # 0 /html/wordpress/wp-includes/media.php(234): image_get_intermediate_size (28, array) # 1 /html/wordpress/wp-includes/media.php(953): image_downsize (28, array) # 2 /html/wordpress/wp-includes/media.php(1028): wp_get_attachment_image_src ( 28, array, true) # 3 /html/wordpress/wp-admin/includes/class-wp-media-list-table.php(414): wp_get_attachment_image (28, array, true, array) # 4 / html / wordpress /wp-admin/includes/class-wp-list-table.php(1447): WP_Media_List_Table-> column_title (Object (WP_Post)) # 5 / html / wordpress / wp-admin / includes / class-wp-media-list -table.php (671): WP_List_Table-> single_row_columns (Object (WP_Post)) # 6 /html/wordpress/wp-admin/includes/class-wp-list-table.php(1364): WP_Media_List_Table-> display_rows () # 7 /html/wordpress/wp-admin/includes/class-wp-list-table.php(1291): WP_List_Table-> display_rows_or_placeholder () # 8 / html / wordpress / wp-admin / up load.php (380): WP_List_Table-> display () # 9 {main} thrown in /html/wordpress/wp-includes/media.php on line 779
There has been a critical error on this website. Please check your site admin email inbox for instructions.We have the problem with WordPress 5.8 as well as 5.7 and PHP 8.0. When changing to PHP 7.4 everything works again.
The error occurs even with a fresh WordPress with a standard theme and without installed extensions.
Would be great if we could get a solution here?
Many Thanks.!
- The topic ‘WordPress 5.8 / 5.7 media library issue with PHP 8.0’ is closed to new replies.