Is the date field required? I can't seem to publish a page if it is left empty

It seems that I canā€™t leave the date field empty if I want to publish a page on the panel. The following error comes up: ā€œThe page has errors and cannot be published. * strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecatedā€

Still getting acquainted with Kirby. Just wondering if thereā€™s a way to make the date field optional to fill like others? Iā€™ve tried the ā€œwhenā€ conditional field but the error comes up even when the field is seemingly hidden in the panel.

Hi, welcome to the forum.

Is the date field required in your blueprint?

Hi! It is not.

This sounds like something related to a field that is required and not filled in, maybe not even related to the other error message.

This might have to do with you using PHP 8.1. Are you using the latest Kirby version 3.6.2?

Iā€™m using Kirby 3.6 and php >=7.1.0 <8.2.0. Perhaps itā€™s a php issue?

Itā€™s definitely just this field because if I delete it from the blueprint Iā€™m able to publish. Itā€™s only when I donā€™t put in a date that I receive that error.

Sharing what I have in the blueprint for this field -

watchDate:
label: Watched on
type: date
display: MM/DD/YYYY

Hm, I canā€™t reproduce it in a fresh 3.6.2 Starterkit. Make sure to update to the latest version 3.6.2. And Kirby requires PHP 7.4+