moodle_page::set_state : Invalid state error

moodle_page::set_state : Invalid state error

از Ayushi Gupta در
Number of replies: 3

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


میانگین امتیازات:  -
In reply to Ayushi Gupta

Re: moodle_page::set_state : Invalid state error

از Howard Miller در
عکس Core developers عکس Documentation writers عکس Particularly helpful Moodlers عکس Peer reviewers عکس Plugin developers

Check for an additional $OUTPUT->header() call. This sort of thing can happen if you have more than one. 

Check your $PAGE->,  require_login(), and $OUTPUT stuff against a report that works.

In reply to Howard Miller

Re: moodle_page::set_state : Invalid state error

از Ayushi Gupta در

I have made a custom page where I am calling moodle grade files.