Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mhughes2k opened this issue Oct 3, 2016 · 0 comments

Comments

@mhughes2k
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant