Coding error detected, it must be fixed by a programmer: The continue param to $OUTPUT->confirm() must be either a URL (string/moodle_url) or a single_button instance.
More information about this error