php - Moodle coding error detected -
my moodle gave me error: "coding error detected, must fixed programmer: invalid state passed moodle_page::set_state. in state 0 , state 3 requested."
i googled bit, couldn't find exact solution error. have never encountered myself before. if need information on code or file, sure tell me.
this can happen if $output->footer()
called $output->header()
hasn't. page should in 1 of these states:
/** state of page before has printed header **/ const state_before_header = 0; /** state page in temporarily while header being printed **/ const state_printing_header = 1; /** state page in while content presumably being printed **/ const state_in_body = 2; /** * state page when footer has been printed , function * complete. */ const state_done = 3;
probably custom code. switch on debugging developer level find out where. in config.php add
$cfg->debug = e_all | e_strict; $cfg->debugdisplay = true;
Comments
Post a Comment