error on uploading to wordpress

 

Hi Guys:

I tried to upload this Hello world example. I got the following errors. I do have those library.json h5p.json. see attchment.

if anyone can give me any direction, that would be great.

  • Could not find library.json file with valid json format for library greeting
  • A valid content folder is missing
  • A valid main h5p.json file is missing


Warning: file_get_contents(/var/www/html/wordpress/wp-content/uploads/h5p/temp/h5p-589cb26e071e7/greeting/library.json): failed to open stream: No such file or directory in /var/www/html/wordpress/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php on line 1226

H5P file: 
icc's picture

Hi! It seems you have gotten one extra folder inside the .h5p file /greeting/h5p.json when it should be only h5p.json – removing this "extra level" should fix the issue.

thank you I got it working!