Wikimedia Developer Support

Datetimepicker throwing error on Page Form

I’m trying to build a page form using the datetimepicker input type, and it keeps throwing this error:

Warning : count(): Parameter must be an array or an object that implements Countable in /home/dh_29mx69/ on line 37

Here’s where you can see it throwing the error:

And here’s the form:

What am I doing wrong?