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

AICC - error reported when editing AICC package

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.2, 2.2
    • 2.1.3
    • SCORM
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE
    • master_MDL-30223
    • Hide

      There's no easy way to reproduce this error - I haven't been able to reproduce it using the AICC packages I have - but I received an e-mail with the report from a user and I can see the code is wrong. - so here's the patch!

      I guess the only thing that can be done is test the updating of a SCORM AICC package...

      eg grab a copy of the AICC package from:
      http://tracker.moodle.org/browse/MDL-27036
      Add this to your page, then go back and edit it again and resave - check to make sure no errors appear in the apache error log or on screen

      Show
      There's no easy way to reproduce this error - I haven't been able to reproduce it using the AICC packages I have - but I received an e-mail with the report from a user and I can see the code is wrong. - so here's the patch! I guess the only thing that can be done is test the updating of a SCORM AICC package... eg grab a copy of the AICC package from: http://tracker.moodle.org/browse/MDL-27036 Add this to your page, then go back and edit it again and resave - check to make sure no errors appear in the apache error log or on screen

    Description

      When editing an existing SCORM AICC package:
      Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() id field must be specified.
      Stack trace:
      • line 975 of /lib/dml/mysqli_native_moodle_database.php: coding_exception thrown
      • line 1031 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()
      • line 240 of /mod/scorm/datamodels/aicclib.php: call to mysqli_native_moodle_database->update_record()
      • line 231 of /mod/scorm/locallib.php: call to scorm_parse_aicc()
      • line 207 of /mod/scorm/lib.php: call to scorm_parse()
      • line 327 of /course/modedit.php: call to scorm_update_instance()

      Attachments

        Activity

          People

            danmarsden Dan Marsden
            danmarsden Dan Marsden
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ankit Agarwal Ankit Agarwal
            Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              28/Nov/11