Bulk update error messages (prod and test)
Bulk update fails for drag and drop When trying to bulk update H5P.DragQuestion 1.13.15, all content fails with on of the two error messages below
Request URL: https://ca.h5p-test.ndla.no/content/upgrade/library?library=/H5P.DragQuestion/1/14
Error messages An error occurred while processing parameters: Cannot read properties of undefined (reading 'task')
An error occurred while processing parameters: dropzone.correctElements.filter is not a function
Screenshots
Looks like you are upgrading to 1.14, but which patch version?
I'm trying to update to 1.14.15
Looking at the upgrades script it seems like all errors are due to issues with the content.
- The ones with
reading 'task'error don't have any questions defined - The correct elements should be set as an array. The
dropzone.correctElements.filter is not a functionerror occurs if it's not an array
These issues could be corrected in the upgrade script or a checks could be added to prevent errors. In previous upgrades, like the one to 1.13, the code checks if 'questions' exists before trying to access it, this is not done in the 1.14 upgrade.