Error thrown

Call to undefined function upcoming_events()