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

PHP error in SCORM module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1, 2.7.5, 2.8.3
    • Fix Version/s: 2.7.6, 2.8.4
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide

      With developer debugging and display errors turned on, Use attached SCORM package for SCORM activity

      1. Create SCORM activity with package attached.
      2. Click Save and display and make sure no PHP errors appear.
      Show
      With developer debugging and display errors turned on, Use attached SCORM package for SCORM activity Create SCORM activity with package attached. Click Save and display and make sure no PHP errors appear.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      master_MDL-46408

      Description

      Using attached SCORM package for SCORM activity result in following php error.

      Notice: Undefined property: stdClass::$defaultorg in /home/rajesht/moodles/im/moodle/mod/scorm/datamodels/scormlib.php on line 567
      

      Steps to reproduce:

      1. Create SCORM activity with attached pacakge
      2. Click Save and display and you will see above error.
      3. Click continue
      4. You will see following notice

        Undefined offset: 0 in /home/rajesht/moodles/im/moodle/mod/scorm/locallib.php on line 1826
        

      Not sure, if package is correct, but moodle should handle this gracefully.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Mar/15