craftcms / craft

Composer starter project for Craft CMS.
https://craftcms.com
BSD Zero Clause License
188 stars 91 forks source link

Physically removed asset breaks assets loading and any content page which includes it #84

Closed marcusgaius closed 2 years ago

marcusgaius commented 2 years ago

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

  1. move or delete an asset from the indexed path
  2. remove preview folders (not sure how those should be referred to, attaching a screenshot of them below)
  3. try to access asset index, or element (including global) containing a field with the asset

Additional info

image