The error message is saying where to look for the error. The cause of the error is in this file:
On line: 2936
It’s calling the function dates() which should be in this file:
Why are you getting this error, sorry, I do not know. Did you by chance change or remove the dates() function? Thats where I would look first.