- Issue created by @markpape
The following error appears in the drupal log when trying to upload an image file within a content type where the same content type has a referenced paragraph which includes a required date field.
TypeError: DateTime::createFromFormat(): Argument #2 ($datetime) must be of type string, array given in DateTime::createFromFormat() (line 251 of /var/www/stormsriver-adventures/web/core/lib/Drupal/Component/Datetime/DateTimePlus.php).
All image field uploads will not work on the content editing page, i.e. standard content type 'image field' and paragraph 'image fields' when the paragraph date field is set to 'required'.
Add content from a content type which includes a paragraph with a required date field.
Ensure that any referenced paragraph content is not 'validated' or prevent whichever process is causing the date field (or any other field) within the paragraph to be interacted with when any other content type fields are being worked on, i.e. a standard image field upload.
Disable 'required' setting on paragraph date field. Although this can be done it means some required fields may not be captured which is an issue.
Not certain
Not certain
Not certain
Not certain
Active
1.18
Code