-
Bug
-
Resolution: Fixed
-
Minor
-
3.10.11, 3.11.7, 3.11.8, 4.0.1, 4.0.2
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
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()
- is duplicated by
-
MDL-75293 H5P Scheduled task fails with a stack trace
- Closed