H5P icon indicating copy to clipboard operation
H5P copied to clipboard

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

Open thdebay opened this issue 2 years ago • 5 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?

thdebay avatar Mar 20 '23 06:03 thdebay

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

qunabu avatar Mar 20 '23 09:03 qunabu

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

thdebay avatar Mar 20 '23 10:03 thdebay

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 ?

qunabu avatar Mar 20 '23 10:03 qunabu

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

thdebay avatar Mar 20 '23 12:03 thdebay

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

qunabu avatar Mar 20 '23 17:03 qunabu

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.

github-actions[bot] avatar Jul 10 '24 02:07 github-actions[bot]