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

Teacher unable to edit questionnaire settings

    XMLWordPrintable

    Details

    • Database:
      PostgreSQL
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE

      Description

      To reproduce:

      As a teacher, add a new questionnaire. Click on "Save and Display", then on "Advanced Settings" tab. Change the title and click on "Save Settings".

      You'll see an error about not being able to create a new survey (that error message could use re-wording, too).

      The error log shows this:

      [Fri Mar 08 12:08:13 2013] [error] [client 10.0.0.200] PHP Notice:  Undefined property: stdClass::$realm in /private/var/www/mdl23/mod/questionnaire/qsettings.php on line 73, referer: http://10.0.0.200/mdl23/mod/questionnaire/qsettings.php?id=44
      [Fri Mar 08 12:08:13 2013] [error] [client 10.0.0.200] PHP Stack trace:, referer: http://10.0.0.200/mdl23/mod/questionnaire/qsettings.php?id=44
      [Fri Mar 08 12:08:13 2013] [error] [client 10.0.0.200] PHP   1. {main}() /private/var/www/mdl23/mod/questionnaire/qsettings.php:0, referer: http://10.0.0.200/mdl23/mod/questionnaire/qsettings.php?id=44
      [Fri Mar 08 12:08:13 2013] [error] [client 10.0.0.200] Default exception handler: Could not create a new survey! Debug: \nError code: couldnotcreatenewsurvey\n* line 476 of /lib/setuplib.php: moodle_exception thrown\n* line 96 of /mod/questionnaire/qsettings.php: call to print_error()\n, referer: http://10.0.0.200/mdl23/mod/questionnaire/qsettings.php?id=44
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/12