The Grid plugin not showing any media library items when using PHP8

Setup: a random grid with post type Media Library and no selected images. The help text tells us that “If no image is added then all images will be displayed.”.

When using PHP7, this will show all Media Library images in the resulting Grid, as expected.
When using PHP8, the grid will show an error message “No post was found with your current grid settings”.

The only workaround is to select some images to display. Those will then be shown in the grid. However, manually selecting images is unfeasible when working with large media library’s.

Hi @Jurriaan,

Thank you for writing in, It seems WordPress is not fully compatible with PHP 8 yet (https://wordpress.org/support/topic-tag/php-8/).

This one WordPress 5.8 / 5.7 media library issue with PHP 8.0 seems to be related to The Grid issue.

I suggest you stick to PHP 7.4 for now.

Cheers!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.