Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-2653

Cannot create new questionnaire

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Module: Questionnaire
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE

      Description

      Cannot create new questionnaire.
      When saving new questionnaire form, I get the following error messages and questionnaire is NOT created.

      Notice: Trying to get property of non-object in C:\server\htdocs\moodle20git\moodle\mod\questionnaire\locallib.php on line 57
      Error: could not insert new context level "70", instance "". cm with id does not exist

      • line 1886 of \lib\accesslib.php: call to debugging()
      • line 2223 of \lib\accesslib.php: call to create_context()
      • line 57 of \mod\questionnaire\locallib.php: call to get_context_instance()
      • line 76 of \mod\questionnaire\locallib.php: call to questionnaire->questionnaire()
      • line 19 of \mod\questionnaire\mod_form.php: call to questionnaire->__construct()
      • line 152 of \lib\formslib.php: call to mod_questionnaire_mod_form->definition()
      • line 71 of \course\moodleform_mod.php: call to moodleform->moodleform()
      • line 219 of \course\modedit.php: call to moodleform_mod->moodleform_mod()

      Notice: Undefined property: object::$id in C:\server\htdocs\moodle20git\moodle\mod\questionnaire\locallib.php on line 57

        Attachments

          Activity

            People

            Assignee:
            mchurch Mike Churchward
            Reporter:
            rezeau Joseph Rézeau
            Participants:
            Component watchers:
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              1/Jul/11