Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297898

InvalidArgumentException: The allowed types parameter is required and must be an array of strings. in Drupal\media_library\MediaLibraryState->validateRequiredParameters() (line 150 of core/modules/media_library/src/MediaLibraryState.php).

$
0
0

Problem/Motivation

"The website encountered an unexpected error. Try again later.

InvalidArgumentException: The allowed types parameter is required and must be an array of strings. in Drupal\media_library\MediaLibraryState->validateRequiredParameters() (line 150 of core/modules/media_library/src/MediaLibraryState.php)."

Sharing SS:

img

After Deleting all Media types, I am getting this error on the home page & content page as an admin, except for admin pages...

Steps to reproduce

Platform D10.2.7, MySQL - 5.8, PHP- 8.3
1. Delete all media types from admin>structure>media.
2. Go back to the home page or any content page.

Proposed resolution

Fix the issue in validateRequiredParameters()


Viewing all articles
Browse latest Browse all 297898

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>