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

Database error when doing course reset in mod_assignment

XMLWordPrintable

    • MOODLE_26_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • MDL-40701-master
    • Hide
      1. Add a course
      2. Enable the assignment (2.2) module
      3. Add an assignment 2.2 (offline activity) and set the due date to 1st August
      4. Go to course -> reset, change the course date to past 1st august
      5. The reset page should tell you about the course date move
      6. VERIFY: no db errors or debugging errors experienced.
      Show
      Add a course Enable the assignment (2.2) module Add an assignment 2.2 (offline activity) and set the due date to 1st August Go to course -> reset, change the course date to past 1st august The reset page should tell you about the course date move VERIFY: no db errors or debugging errors experienced.
    • BACKEND Sprint 2

      1. Add assignment 2.2 offline activity to a course
      2. Immedately go to course reset
      3. Change the date of the course

       Notice: Trying to get property of non-object in /Users/danp/git/integration/mod/assignment/lib.php on line 3190
      Call Stack
      #	Time	Memory	Function	Location
      1	0.0001	266864	{main}( )	../reset.php:0
      2	1.0454	18094832	reset_course_userdata( )	../reset.php:73
      3	1.0948	18186864	assignment_reset_userdata( )	../moodlelib.php:5347
      4	1.0958	18213368	assignment_base->reset_userdata( )	../lib.php:3887
      5	1.0988	18214512	shift_course_mod_dates( )	../lib.php:2375
      6	1.1005	18214920	assignment_refresh_events( )	../moodlelib.php:5151
      Can not find data record in database table course_modules.
       
      More information about this error
       
      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 6926 of /lib/accesslib.php: call to moodle_database->get_record()
      line 1454 of /lib/weblib.php: call to context_module::instance()
      line 3190 of /mod/assignment/lib.php: call to format_module_intro()
      line 5151 of /lib/moodlelib.php: call to assignment_refresh_events()
      line 2375 of /mod/assignment/lib.php: call to shift_course_mod_dates()
      line 3887 of /mod/assignment/lib.php: call to assignment_base->reset_userdata()
      line 5347 of /lib/moodlelib.php: call to assignment_reset_userdata()
      line 73 of /course/reset.php: call to reset_course_userdata()
      

            poltawski Dan Poltawski
            poltawski Dan Poltawski
            Marina Glancy Marina Glancy
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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