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

PHP error in SCORM module

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.1, 2.7.5, 2.8.3
    • 2.7.6, 2.8.4
    • SCORM
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • master_MDL-46408
    • 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.

    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

              danmarsden Dan Marsden
              rajeshtaneja Rajesh Taneja
              Andrew Lyons Andrew Lyons
              Dave Cooper Dave Cooper
              Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Mar/15