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

h5p_get_content_types_task failing on fetch_latest_content_types()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.10.11, 3.11.7, 3.11.8, 4.0.1, 4.0.2
    • 3.11.9, 4.0.3
    • H5P

    Description

      To replicate: Run the scheduled task.

      Expected output:

      Execute scheduled task: Download available H5P content types from h5p.org (core\task\h5p_get_content_types_task)
      ... started $time. Current memory use $memoryuse.
      $ntypes new content types installed
      ... used $nqueries dbqueries
      ... used $nseconds seconds
      Scheduled task complete: Download available H5P content types from h5p.org (core\task\h5p_get_content_types_task)

      Actual output:

      (if run on schedule)

      Execute scheduled task: Download available H5P content types from h5p.org (core\task\h5p_get_content_types_task)
      ... started $time. Current memory use $memoryuse.
      ... used $nqueries dbqueries
      ... used $nseconds 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.

      (if run on command line)

      Execute scheduled task: Download available H5P content types from h5p.org (core\task\h5p_get_content_types_task)
      ... started $time. Current memory use $memoryuse.Notice: Undefined index: libraryId in /var/www/html/h5p/classes/core.php on line 280
      ... used $nqueries dbqueries
      ... used $nseconds 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 1355 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->update_record_raw()
      * line 291 of /h5p/classes/core.php: call to pgsql_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()

      Attachments

        1. MDL-74895_master.png
          MDL-74895_master.png
          27 kB
        2. MDL-74895_v311.png
          MDL-74895_v311.png
          27 kB
        3. MDL-74895_v400.png
          MDL-74895_v400.png
          27 kB

        Issue Links

          Activity

            People

              pholden Paul Holden
              sashaanastasi1 SashaAnastasi
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Jun Pataleta Jun Pataleta
              John Edward Pedregosa John Edward Pedregosa
              Votes:
              8 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                22/Aug/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 42 minutes
                  1h 42m