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

Resetting the course start date when having a chat activity causes a fatal error

    XMLWordPrintable

    Details

      Description

      Resetting the course start date (with the reset function) when there is a chat activity in the course causes a fatal error and the reset stops :

      Debug info: SELECT id,course FROM {course_modules} WHERE id IS NULL
      [array (
      )]
      Error code: invalidrecord
      Stack trace:
      line 1372 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      line 1348 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      line 6864 of /lib/accesslib.php: call to moodle_database->get_record()
      line 1444 of /lib/weblib.php: call to context_module::instance()
      line 458 of /mod/chat/lib.php: call to format_module_intro()
      line 5056 of /lib/moodlelib.php: call to chat_refresh_events()
      line 1182 of /mod/chat/lib.php: call to shift_course_mod_dates()
      line 5272 of /lib/moodlelib.php: call to chat_reset_userdata()
      line 73 of /course/reset.php: call to reset_course_userdata()
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Mar/16