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

H5P Scheduled task fails with a stack trace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.0.2
    • H5P
    • None
    • Ubuntu 20.04
      Apache
      MariaDB
      PHP 8.0

      Steps to reproduce:

      1. Requires a fresh install of Moodle to reproduce.
      2. Turn on debugging:
      3. Run the scheduled task: \core\task\h5p_get_content_types_task

      Result:

      Download available H5P content types from h5p.org

      Execute scheduled task: Download available H5P content types from h5p.org (core\task\h5p_get_content_types_task)
      ... started 18:11:42. Current memory use 13.8 MB.

      Warning: Undefined array key "libraryId" in /var/www/html/h5p/classes/core.php on line 280
      ... used 25 dbqueries
      ... used 2.992928981781 seconds
      Scheduled task failed: Download available H5P content types from h5p.org (core\task\h5p_get_content_types_task),Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() id field must be specified.
      Backtrace:

      • line 1619 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()
      • line 291 of /h5p/classes/core.php: call to mysqli_native_moodle_database->update_record()
      • line 215 of /h5p/classes/core.php: call to core_h5p\core->fetch_content_type()
      • line 69 of /lib/classes/task/h5p_get_content_types_task.php: call to core_h5p\core->fetch_latest_content_types()
      • line 253 of /lib/cronlib.php: call to core\task\h5p_get_content_types_task->execute()
      • line 167 of /admin/cli/scheduled_task.php: call to cron_run_inner_scheduled_task()

            Unassigned Unassigned
            sbourget Stephen Bourget
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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