EscolaLMS/H5P

Error when editing existing content (Uncaught TypeError: H5P.Version is not a constructor)

Closed this issue · 6 comments

Hello,

I have repeated errors when I work with existing content (created in the H5P editor for Wordpress).

I initially imported my h5p files using the upload() method from the H5PContentRepositoryContract. I manage to preview the content, but I have an error when I try to edit and save :

Uncaught TypeError: H5P.Version is not a constructor

I also attempted to import the .h5p file using the "upload" form provided in the demo app. It does not work and I have this error :

Uncaught TypeError: H5P.Question is undefined

Do you have any idea where this might come from?

qunabu commented

@thdebay can you share privately sample file you're using for us to debug ?

Not a problem, here is one of the files I used when I ran into the issue (zipped)
actu-50-village-chinois-a-248.h5p.zip

qunabu commented

Have just uploaded the h5p which was inside the zip in our public demo
image
https://h5p-laravel-demo.stage.etd24.pl/player/98bb7617-6ef6-4b35-8644-152ccd7025ae

This seems to be be workinG ?

The player is working but the error occurs when you try to edit the h5p and save it

qunabu commented

I can confirm that I'm able to reproduce this error
image

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.