Invalid language file .en.json in library

After installing the plugin in Wordpress 4.9.8, I do not have the options to add new content as shown on the page: 

https://h5p.org/documentation/setup/wordpress 

Click "Select Content Type" to open the H5P Hub

There are simply no options

--

I believe I found the content I wanted here:

https://github.com/h5p/h5p-interactive-video

But when trying to upload the file "h5p-interactive-video-master" into Upload Libraries section I get this error:

"Invalid language file .en.json in library h5p-interactive-video-master"

When I try to upload it to the Add New section, I get these errors:

  • Invalid language file .en.json in library h5p-interactive-video-master
  • A valid content folder is missing
  • A valid main h5p.json file is missing

Help!

otacke's picture

Hi Jake!

The repository downloads from github don't provide you with installable libraries. They'll have to be (built and) packed first.

What exactly do you see? Are there any error messages in the browser console?

In order to give your bug report the best chance of getting answered by someone in the community, please include the following information:

  • Detailed steps to reproduce the bug (exactly how and when did it happen)
  • Platform and version number. E.g. Drupal, Wordpress, Moodle.
  • Mobile or Desktop
  • Browser: Chrome, Firefox, Safari etc
  • H5P plugin version
  • H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  • Any browser console errors
  • Any PHP errors
  • Screenshots if it's a visual problem

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

Best,
Oliver

* Detailed steps to reproduce the bug (exactly how and when did it happen)

1 - Download zip from https://github.com/h5p/h5p-interactive-video

2 - Tried to upload into Wordpress through Add New and Libraries.

 

* Platform and version number. E.g. Drupal, Wordpress, Moodle.

- Wordpress 4.9.8

 

* Mobile or Desktop

- Desktop

 

*Browser: Chrome, Firefox, Safari etc

- Chrome

 

* H5P plugin version

- H5P 1.11.2

 

* H5P content type and version (if a content type was used), and a sample URL or attached H5P.

- Interactive Video: https://github.com/h5p/h5p-interactive-video

 

* Any browser console errors

- I don't have any

 

* Any PHP errors

When uploading through Add New, I get this:

Invalid language file .en.json in library h5p-interactive-video-master

A valid content folder is missing

A valid main h5p.json file is missing

When uploading through Libraries, I get this:

Invalid language file .en.json in library h5p-interactive-video-master

 

 

*** The first issue is that after installing the plugin in Wordpress, I do not have the options to add new content as shown on the page: 

 

https://h5p.org/documentation/setup/wordpress 

 

Click "Select Content Type" to open the H5P Hub

 

There are simply no options

Screenshots if it's a visual problem

otacke's picture

Hi Jake!

Have you already had a look at the readme of the Interactive Video repository?

The github repositories are not intended to provide you with installable h5p files. They hold all the stuff that's required for development. You'll find information on how to build and pack the library in the readme.

Is there any reason why you don't want to use the H5P Hub? It will always provide you with the release version. You can, of course, try the master branch from github as well, but this may contain bugs. Anyway, at least make sure to download the release branch.

Best,
Oliver

The problem is that there is nothing populated in the Hub

otacke's picture

Hi Jake!

I noticed that you have not mentioned any JavaScript errors showing the dev console or any PHP errors that may be listed in the webserver's error log for the Hub issue, but only for your problem when uploading. It's really hard to say what might be wrong without those hints. Could you please provide them?

Best,
Oliver

Hi Oliver,

There are no webserver errors. It is simply that the plugin isn't functioning as described. I can show you a screenshot of what I see, but there are no options in the Hub at all. Everything is up to date on me end. 

 

Thanks,

Jake

I would like to use the Hub, but it is not populated after I installed the plugin. There are no options in the dropdown.

BV52's picture

Hi jakemeister,

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

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV52

I have already replied with all this information.

Why is there nothing populated in the H5P Hub? That is the problem.

BV52's picture

Hi jakemeister,

Sorry I did not notice the comment above.

-BV52

So what do I do about the hub problem? I can't wait to get started building my school with H5P, but I can't get around this problem.

So what do I do about the hub problem? I can't wait to get started building my school with H5P, but I can't get around this problem.

Hi Oliver,

There are no webserver errors. It is simply that the plugin isn't functioning as described. I can show you a screenshot of what I see, but there are no options in the Hub at all. Everything is up to date on me end. 

 

Thanks,

Jake

otacke's picture

Hi Jake!

Just to make sure we're on the same page: You have

a) observed the developer console (usually opened by pressing F12) while loading the page, and it does not list any JavaScript errors or network errors.

b) checked the PHP error log file of your web server, and among the latest lines that were added, it doesn't show anything that's related to the Hub.

If both is true, I don't see any way we could possibly help you, unfortunately.

Cheers,

Oliver 

This problem has been solved. I simply selected "Use H5P Hub" within the plugin settings. I am sure that it would seem an obvious think to do, to look within the Settings, but not for someone who isn't software inclined at all!

BV52's picture

Hi Jakemeister,

I'm glad this is now resolved although I'm not sure what happened. Even without the hub it should still let you use the contents that are already installed and everynow and then it asks you if you want to enable it.

-BV52