Uncaught TypeError: H5P.DragNDrop is not a constructor

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: 
Attachments: 
Summary: 
Uncaught TypeError: H5P.DragNDrop is not a constructor
Content types: 
papi Jo's picture

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:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem
  10. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)
  11. Any recent changes to the browser you're using (new extensions, updates etc.)

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

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's picture

Hi kbaskar!

Could you please also inform people about entering the danger zone? You can wreck content that way.

Best,

Oliver 

Hi Oliver,

When we update the old H5P packages, it will update the H5P library automatically for older versions also, isn't it?

otacke's picture

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

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

 

 

 

Sure Oliver. 
Thanks for the clarification, I will add the same in the comments.