Moodle
  1. Moodle
  2. MDL-29696

Invalid state passed to moodle_page::set_state. We are in state 3 and state 3 was requested.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.5, 2.1.2, 2.2
    • Fix Version/s: 2.0.6, 2.1.3
    • Labels:
    • Environment:
      LAMP Ubuntu 10.04
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Create Database Activity.
      Choose Predefined Set right after.
      Select a predefined set and click the "Choose" button.
      The next page loads fine but if you scroll down I see what is attached with the photo.

      Coding error detected, it must be fixed by a programmer: Invalid state passed to moodle_page::set_state. We are in state 3 and state 3 was requested.

      Show
      Create Database Activity. Choose Predefined Set right after. Select a predefined set and click the "Choose" button. The next page loads fine but if you scroll down I see what is attached with the photo. Coding error detected, it must be fixed by a programmer: Invalid state passed to moodle_page::set_state. We are in state 3 and state 3 was requested.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Rank:
      19206

      Description

      Selecting a Predefined Set in the database activity causes an error to appear on next page as seen in the screencap.

      "Coding error detected, it must be fixed by a programmer: Invalid state passed to moodle_page::set_state. We are in state 3 and state 3 was requested."

        Activity

        Hide
        Dan Poltawski added a comment -

        Thanks for the report.

        Integrators: note this can be cherry-picked into 20_STABLE and master

        Show
        Dan Poltawski added a comment - Thanks for the report. Integrators: note this can be cherry-picked into 20_STABLE and master
        Hide
        Eloy Lafuente (stronk7) added a comment -

        The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week.

        TIA and ciao

        Show
        Eloy Lafuente (stronk7) added a comment - The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week. TIA and ciao
        Hide
        Aparup Banerjee added a comment -

        This has been cherry-picked to master and 2.x stables.

        I'm exiting with one footer now, thank you!

        Show
        Aparup Banerjee added a comment - This has been cherry-picked to master and 2.x stables. I'm exiting with one footer now, thank you!
        Hide
        Glenn Ansley added a comment -

        Confirmed both the bug and the solution in 20, 21, and master. Tests all passed in integrations versions of above branches.

        Show
        Glenn Ansley added a comment - Confirmed both the bug and the solution in 20, 21, and master. Tests all passed in integrations versions of above branches.
        Hide
        Eloy Lafuente (stronk7) added a comment -

        Yes, you got this finally upstream, just in time for Moodle 2.2beta. Congrats and thanks!

        Ciao

        Show
        Eloy Lafuente (stronk7) added a comment - Yes, you got this finally upstream, just in time for Moodle 2.2beta. Congrats and thanks! Ciao

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: