Creating a custom page for grader report.
Error showing -"Coding error detected, it must be fixed by a programmer: Invalid state passed to moodle_page::set_state. We are in state 0 and state 3 was requested."
Header is loading again.
Any help what can be the possible issue or what the code is missing.
Thanks