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

h5p_get_content_types_task failing on fetch_latest_content_types()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.11.9, 4.0.3
    • 3.10.11, 3.11.7, 3.11.8, 4.0.1, 4.0.2
    • H5P
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • Hide
      1. Install new site
      2. Login as admin.
      3. Open a terminal and go to your moodle root folder
      4. Run Download available H5P content types from h5p.org task (It can take a few minutes)

        php admin/cli/scheduled_task.php --execute="core\task\h5p_get_content_types_task"

      5. Confirm the task completes without exceptions/notices
      Show
      Install new site Login as admin. Open a terminal and go to your moodle root folder Run Download available H5P content types from h5p.org task (It can take a few minutes) php admin/cli/scheduled_task.php --execute="core\task\h5p_get_content_types_task" Confirm the task completes without exceptions/notices

      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()

        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

            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

              Created:
              Updated:
              Resolved:

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

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