Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37098

Fatal error when deleting a group in quiz_groups_group_deleted_handler()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.4.1
    • 2.4
    • Groups, Quiz
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • Hide
      1. Create a course with some groups.
      2. Create a quiz in the course, add some questions and attempt it as a student. (Do not create any settings overrides.)
      3. Delete one of the groups. Verify that there are no fatal errors.
      Show
      Create a course with some groups. Create a quiz in the course, add some questions and attempt it as a student. (Do not create any settings overrides.) Delete one of the groups. Verify that there are no fatal errors.

      When attempting to delete a group in Course Administration->Users->Groups there was a fatal error (group was not empty):

      Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays

      More information about this error

      Debug info:
      Error code: codingerror
      Stack trace:
      line 646 of /lib/dml/moodle_database.php: coding_exception thrown
      line 802 of /mod/quiz/locallib.php: call to moodle_database->get_in_or_equal()
      line 1628 of /mod/quiz/locallib.php: call to quiz_update_open_attempts()
      line ? of unknownfile: call to quiz_groups_group_deleted_handler()
      line 299 of /lib/eventslib.php: call to call_user_func()
      line 519 of /lib/eventslib.php: call to events_dispatch()
      line 442 of /group/lib.php: call to events_trigger()
      line 73 of /group/delete.php: call to groups_delete_group()

            timhunt Tim Hunt
            marina Marina Glancy
            Dan Poltawski Dan Poltawski
            Jason Fowler Jason Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.