Problem/Motivation
WSOD when trying to add new media type
Steps to reproduce
- Drupal 11.3.2/PHP 8.3.29
- install/enable module
- navigate to https://d11.local/admin/structure/media/add
Result:
Error: Class "Drupal\media_library\Form\AddFormBase" not found in include() (line 15 of /Users/jm/work/d11.local/web/modules/contrib/media_iframe/src/Form/MediaLibrary/MediaIframeAddForm.php).
Comments
Comment #2
dpiThis file has been a part of core since 2019,
The class is referenced by a plugin, the plugin shouldnt be initialised unless media library initialises it.
This doesnt seem like a problem here.
No idea why navigating to /admin/structure/media/add would trigger it, over any other route.
Maybe a larger stack trace will help.
This issue will be closed if there are no further updates in the near future.