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

use of undefined $scorm->pkgtype in function scorm_parse($scorm)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9.12
    • 1.9.10
    • SCORM
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      Notice: Undefined property: stdClass::$pkgtype in /Users/skodak/server/workspace/integration19/mod/scorm/locallib.php on line 772
      Call Stack: 0.0003 692808 1.

      {main}

      ()
      /Users/skodak/server/workspace/integration19/mod/scorm/view.php:0 0.1017 23022968 2. scorm_simple_play()
      /Users/skodak/server/workspace/integration19/mod/scorm/view.php:50 0.1017 23023016 3. scorm_parse()
      /Users/skodak/server/workspace/integration19/mod/scorm/locallib.php:733

      This happens when you set Auto update option to "every time it is used" and visit the view.php, the reason is that the

      if (($packagedata = scorm_check_package($scorm)) != null) {
      $scorm->pkgtype = $packagedata->pkgtype;

      is not in the mod/scorm/view.php

            danmarsden Dan Marsden
            skodak Petr Skoda
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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