Validating h5p package failed.

roblespar's picture


I have a Dupal core 7.59 instance with H5P 7.x-1.35 installed.
When I attempt to update the content types via "Interactive Content" tab I get the following error.

Validating h5p package failed.

The file you uploaded is not a valid HTML5 Package (We are unable to unzip it) Get help

Any idea how I can fix it?

When is the July release avaialble?


Validating h5p package failed.
BV52's picture

Hi Robert,

Can you please check your browser console for errors and any PHP errors.


My Problem was that the sites/default/files/h5p folder was lacking the right to write a file to.  When the downloaded file is not written to the filesystem the drupal 7 h5p module gives the "not a h5p file" error. 



ArchonKen's picture

I'm downloading H5P files from, then extracting the ZIP,  changing one CSS declaration, recompiling the ZIP, renaming to .h5p and uploading to my  No matter what I do (or how LITTLE I do), I get two errors:
What am I doing wrong? Thanks

Validating h5p package failed.

A valid content folder is missingGet help


A valid main h5p.json file is missingGet help

H5P file: 
BV52's picture

Hi ArchonKen,

It's possible that you may be zipping the files the wrong way. Could you please check if you zipped the folder (won't work) or all the files (should work)?


fnoks's picture

As BV52 mentioned, your ".h5p" file is really not an ".h5p" file, since it contains a css_test folder. It should contain the following files/folders in the "root" of the H5P file:

  • content
  • Drop-1.0
  • FontAwesome-4.5
  • H5P.DragText-1.7
  • H5PEditor.RangeList-1.0
  • H5PEditor.TableList-1.0
  • H5P.FontIcons-1.0
  • H5P.JoubelUI-1.3
  • h5p.json
  • H5P.Question-1.4
  • H5P.Transition-1.0
  • jQuery.ui-1.10
  • Tether-1.0

You could also have a look at the H5P spec

studyaid's picture

It is the way the file is compressing.  Your file contained empty file paths.

For OS X and Linux run this command in terminal to remove extra files and empty directory paths.

zip -r -D -X css_test.h5p *

-D   do not add directory entries

-X   eXclude eXtra file attributes

To verify and compare the h5p files type:

zipinfo css_test.h5p


Hello. I am using H5P on two different websites. I want to use a quiz I made on one website, on the other website (content attached). So I have tried to download and upload the content using the instructions here. But when I try to upload it I get a message saying that validating the h5p package failed, and that the file I uploaded is not a valid HTML5 Package and could not be unzipped. I have not changed the package at all. Following the advice given to another user I have checked the Chrome developer console but can see no errors. There is one warning: "jquery.js?ver=1.15.0:2 Allow attribute will take precedence over 'allowfullscreen'."

BV52's picture

Hi barneysamsonera,

Without any other information my best guess is that the receiving server uses a lower version of the H5P plugin.


otacke's picture

Hi Barney!

That other person is active here as well and that other person has also pointed out to potential problems residing on your server (that jQuery message has nothing to do with the problem) - which was probably correct given that that person could upload your file without any trouble. If you are now seeking help here, it was great if you shared all the information that you have.


pyscheffler's picture

Sorry, the site won't let me start a thread, only reply.  I am at U. Hawaii where we use a Sakai-based LMS.  I would like to integrate H5P with my Gradebook but can't figure out how to do that.  When I tried to get an account at, it won't tell me how much that will cost or if there are individual subscriptions.  Can you tell me if I can get an individual subscription, how much that would cost, and if it will be possible for me to set up with Sakai?  thanks.

BV52's picture

Hi pyscheffler,

You can reach out to the H5P Customer Success team by sending an e-mail to [email protected].


pyscheffler's picture

thank you!