Uncaught TypeError: H5P.DragNDrop is not a constructor


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: 
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