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

PHP error in SCORM module

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.6, 2.8.4
    • 2.7.1, 2.7.5, 2.8.3
    • 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.

      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.

            danmarsden Dan Marsden
            rajeshtaneja Rajesh Taneja
            Andrew Lyons Andrew Lyons
            Dave Cooper Dave Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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