Error thrown

Call to a member function start_date() on bool