Uncaught TypeError: H5P.DragNDrop is not a constructor
Submitted by talhaeummena on Fri, 04/02/2021 - 12:29
Forums:
Uncaught TypeError: H5P.DragNDrop is not a constructor
This generates on all the below situation.
- generates on console when h5p package uploaded on label via h5p filter.
- generates when h5p package uploaded via h5p activity
- generates when view the preview from the content bank
When i created the h5p package by using interactive content module/acitivity in course.
It shows perfectly!!!
But i need to upload h5p packages on content bank to use these packages in several courses.
In some courses, it generate this error as well.
Uncaught ReferenceError: EJS is not defined
H5P file:
Summary:
Uncaught TypeError: H5P.DragNDrop is not a constructor
Content types:
papi Jo
Fri, 04/02/2021 - 15:43
Permalink
Hi talhaeummena!
Hi talhaeummena!
1.- You should have reported this in the bugs forum, not the developer forum.
2.- Unfortunately you did not follow the recommended procedure to report bugs:
Creating A Bug Report
In order to give your bug report the best chance of getting answered, please include the following information:
The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!
Anyway, from your post I gather that you are using H5P on a Moodle platform. I suggest you report this bug to the ad hoc Moodle forum at
https://moodle.org/mod/forum/view.php?id=8603
kbaskar
Wed, 11/23/2022 - 15:06
Permalink
The issue has been fixed.
Hi,
I have fixed this issue by update the H5P libraries, please refer the below link for more details
https://www.youtube.com/watch?v=dFDBtmapSSg&t=9s
otacke
Wed, 11/23/2022 - 21:56
Permalink
Hi kbaskar!Could you please
Hi kbaskar!
Could you please also inform people about entering the danger zone? You can wreck content that way.
Best,
Oliver
kbaskar
Thu, 11/24/2022 - 05:19
Permalink
Hi Oliver,When we update the
Hi Oliver,
When we update the old H5P packages, it will update the H5P library automatically for older versions also, isn't it?
otacke
Thu, 11/24/2022 - 09:13
Permalink
If you update libraries
If you update libraries (either explicitly on the H5P Hub or by uploading a content file using a later version on the H5P Hub), then a new library version will get installed including dependencies. Existing content is however not touched in any way. It will still use the old versions that were installed.
If you upgrade existing contents explicitly on the H5P library screen then their dependencies will be updated and they will use the later versions.
If you upload or edit a single content file that uses an older library version than found on the platform, that content will automatically be updated to the later version. Other contents are, however, not changed in any way.
On top of that, you do not have a guarantee that all content types always use the latest major or minor version as a dependency. Same for existing content.
Trust me, it's not a clever idea to simply wipe that database table and you are giving very risky advice without telling people so.
Best,
Oliver
kbaskar
Wed, 11/23/2022 - 15:07
Permalink
The issue has been fixed.
Hi,
I have fixed this issue by update the H5P libraries, please refer the below link for more details.
https://www.youtube.com/watch?v=dFDBtmapSSg&t=9s
kbaskar
Thu, 11/24/2022 - 09:33
Permalink
Sure Oliver. Thanks for the
Sure Oliver.
Thanks for the clarification, I will add the same in the comments.