Skip to content

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 2 was requested. #46

@mhughes2k

Description

@mhughes2k

We have set up this plugin and when we attempt to access an LTI user's profile via the user drop down menu we get

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 2 was requested.

Stack trace: 
    line 883 of /lib/pagelib.php: coding_exception thrown
    line 78 of /local/ltiprovider/lib.php: call to moodle_page->set_state()
    line 1304 of /lib/navigationlib.php: call to local_ltiprovider_extend_navigation()
    line 3424 of /lib/navigationlib.php: call to global_navigation->initialise()
    line 718 of /lib/pagelib.php: call to settings_navigation->__construct()
    line 768 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
    line 128 of /user/profile.php: call to moodle_page->__get()

(if I disable the debug output it just returns the red coding error box.

Looking at the code in question it appears to be something to do with forcenavigation setting and having an $urltogo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions