• 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.!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    The error occurs even with a fresh WordPress with a standard theme and without installed extensions.

    Have also tried deactivating ALL plugins?

    If not, if you can install plugins, install and activate “Health Check”: https://www.ads-software.com/plugins/health-check/
    It will add some additional features under the menu item under Tools > Site Health.
    On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off and switch between themes, without affecting normal visitors to your site. This allows you to test for various compatibility issues.
    There’s a more detailed description about how to use the Health Check plugin and its Troubleshooting Mode at https://make.www.ads-software.com/support/handbook/appendix/troubleshooting-using-the-health-check/

    Thread Starter tnkbig

    (@tnkbig)

    Hey thank you for Feedback. I can try Health Check but the problem is that the issue is allready there when i install a clean WordPress with default Theme and no Plugins installed. A completely clean Installation. As i said in my first Post. With extensions i meant Plugins so sorry for confusing you.

    Any idea about this? Seems issue with PHP 8 and WordPress.

    Would be nice of we can this can fix that.
    Thanks.

    I have this same issue. I upgraded our PHP to 8.0.10 and now it looks like WordPress is unable to generate thumbnails for images I upload into the media library. I tried a thumbnail regenerating plugin and that did not work either. I dropped the PHP version down to 7.4.11 and now I can get it to create thumbnails by adding an image, going in to edit the image, rotate it left, then rotate it back to the right, then save the image. That workaround did not work on version 8.0.10.

    If you need more information to help with this let me know.
    Thanks

    I’m not aware that WP ever gave the green light to PHP 8. My understanding is that, while they are working toward full compatibility with PHP 8, but they are not done yet.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress 5.8 / 5.7 media library issue with PHP 8.0’ is closed to new replies.