DateTime::createFromFormat() expects parameter 2 to be string

Created on 30 August 2022, almost 2 years ago
Updated 20 February 2024, 5 months ago

Problem/Motivation

On a node edit form with a paragraph having a date field with empty value, i got this error when i trigger an ajax callback on another field :
<br/><b>Warning</b>: DateTime::createFromFormat() expects parameter 2 to be string, array given in <b>/var/www/html/web/core/lib/Drupal/Component/Datetime/DateTimePlus.php</b> on line <b>251</b><br/>

🐛 Bug report
Status

Closed: duplicate

Version

11.0 🔥

Component
Other 

Last updated less than a minute ago

Created by

🇫🇷France fwust Strasbourg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024