Install
Works with Drupal: ^10.2 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
77.07 KB
MD5: 1511641b44fa07cd08ffae39646ba71d
SHA-1: 34455ebedec5363fd41a0432a993da59e67d0876
SHA-256: 144b578259798ae6098f2fbe9279274a059a999b24800014b7905bbfda7f4227
Download zip
122.74 KB
MD5: 496c621db4b9d83cb1e8165d4ecec25e
SHA-1: 0639d9fdd51295ad8f78c44b39ff7bd1b3cefa67
SHA-256: 303b443f7b028cc3eb43ebe542731f71daff9cc29238a4ef66a802369fbc6e17
Release notes
A content that is rendered without a SCORM package no longer raises PHP warnings, and the log line of that case no longer breaks the "Recent log messages" page.
Fixed
- The players read the id of the package before they knew there was one. A content rendered without a package (its file is not a SCORM package, or the package's record is gone) raised
"Attempt to read property "id" on false" and a series of "Undefined array key" warnings on every rendering, for example while a search index was built. Both players now return an empty render array
when there is nothing to play. - The log line of that case was written with
NULLfor its placeholder. "Recent log messages" (/admin/reports/dblog) then failed with aTypeError(HTTP
500) for as long as the line was on the list. Log placeholders are now passed as strings. getScormData()leaves early without a package and logs the id of the content.getStartSCO()answersNULLwithout a package.- The message of the start SCO check names the package and the content, and is in English like the rest of the module.
Upgrading
No database updates and no configuration changes. Log lines an earlier version wrote with an empty placeholder stay in the log until it rotates; while one of them is listed, "Recent log
messages" keeps failing. Clearing the log, or the lines of the type scorm_field, ends that.