Importation of file in WP don't work

I've some problem to use the H5P module for wordpress.

The plugin is activated and when i try to upload any h5P file, there are always error (not dependant to the upload file limit). I've test it for 3 or 4 differents exemples (interactive video, drag and drop and iframe...)

The module give me some information about the error, but i don't know what to do with that.

A valid content folder is missing
A valid main h5p.json file is missing

Do you have any idea to help me ?

Thanks

icc's picture

Where did you get the .h5p file?

One of them ...

H5P file: 
icc's picture

Thank you. The file works fine on my local WP, so I'm guessing it has something to do with your server environment. Do you have any error messages in your web server's error log?

i've made a wp environment specifically to test h5P. I creat it and just install H5P (and i made it two times).

They are no error displayed on the log ....

No idea ?

On the console i have this error:
http://oursite.org/wordpress/wp-content/plugins/h5p/h5p-php-library/js/j...
Request Method:GET
Status Code:404 Not Found

I don't find this file on the installation folder of H5P, is it normal ?

fnoks's picture

This error-message is expected. We will make it go away in a future release of the plugin.

I've find a solution.

When I've done my first test, i do not have access to the folder by ftp.

I propose to explain the problem with a specific error message to help people to not have this problem.

fnoks's picture

Thank you for your report. We will try to handle this error-situation better in future releases of the plugin!

Has this been resolved.  Just tried uploading a .h5p file and got the messages listed below.  Any thoughts/suggestions?

  • A valid content folder is missing
  • A valid main h5p.json file is missing
thomasmars's picture

We have improved error messages in the latest versions of the plugin. Is this a .h5p file from h5p.org ?

The H5P plugin is not able to verify that the content and main json of your .h5p file is valid/exists. This is most likely due to a corrupt .h5p file or improper server permissions. Please check that you have the correct permissions for H5P on your server.

Have a look at: this post, which had a similar problem. Let me know if this works out for you! :)

Thank you for the quick reply.  I tried a different file from h5p.org and that file worked.  I belive the problem was with the file that was sent to me for testing.  It was the library file, which included all examples and we thought it would import all at one time.  We should be good to go.

Again, appreciate your time and help.

zanm

thomasmars's picture

H5P libraries must be added at the "H5P libraries" menu. Only H5P "content" may be uploaded through the H5P upload option. For adding the library file follow the description at the following page in our documentation: Update all content types

Glad it worked out, hope you enjoy working with H5P! :)