-
Bug
-
Resolution: Fixed
-
Major
-
4.2.8, 4.1.9, 4.3.4
-
HQ 2024 Maintenance I2 Mop
To replicate: Run Download available H5P content types from h5p.org task
php admin/cli/scheduled_task.php --execute="core\task\h5p_get_content_types_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:
Execute scheduled task: Download available H5P content types from h5p.org (core\task\h5p_get_content_types_task)
... started $time. Current memory use $memoryuse.Warning: Trying to access array offset on value of type null in /var/www/html/h5p/classes/core.php on line 276
... used $nqueries dbqueries
... used $nseconds seconds
Scheduled task failed: Download available H5P content types from h5p.org (core\task\h5p_get_content_types_task),array_key_exists(): Argument #2 ($array) must be of type array, null given
Backtrace:
line 277 of /h5p/classes/core.php: call to array_key_exists()
line 210 of /h5p/classes/core.php: call to core_h5p\core->fetch_content_type()
line 64 of /lib/classes/task/h5p_get_content_types_task.php: call to core_h5p\core->fetch_latest_content_types()
line 405 of /lib/classes/cron.php: call to core\task\h5p_get_content_types_task->execute()
line 198 of /admin/cli/scheduled_task.php: call to core\cron::run_inner_scheduled_task()
Probable cause : naming scheme of the H5P libraries is currently being changed : https://h5p.org/node/1484767
- is duplicated by
-
MDL-82387 core\tasks\h5p_get_content_types_task fails on updating the Column content
- Closed
- links to