Getting error message "craft\services\Assets::getThumbUrl(): Return value must be of type string, null returned" when trying to open a cp page which should have access to an asset with broken index if the rendered preview is not present
Steps to reproduce
move or delete an asset from the indexed path
remove preview folders (not sure how those should be referred to, attaching a screenshot of them below)
try to access asset index, or element (including global) containing a field with the asset
Additional info
Craft version: 4.0.1
PHP version: 8.0.13|8.0.18
Database driver & version: Ver 8.0.27-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))|Ver 8.0.29-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu))
Description
Getting error message "craft\services\Assets::getThumbUrl(): Return value must be of type string, null returned" when trying to open a cp page which should have access to an asset with broken index if the rendered preview is not present
Steps to reproduce
Additional info