H5P Guides
Install & update content types
It is important that you keep your H5P content types up to date to make sure that you have all the latest features (and bugfixes).
Important notice: On April 12th 2017 the H5P Hub was released, which replaces the old way of installing content types. You must make sure you are using a plugin version including the HUB if you want to install and update content types. For the different plugins, this means:
Drupal: minimum version 1.28
WordPress: minimum version 1.8.0
Moodle: minimum version 1.1 (2017041200)
Below are the instructions on how to update and install new content types with the latest version of the H5P plugin.
Comments
falcon
Tue, 04/12/2016 - 11:04
Permalink
The release note will be
stopbit
Mon, 05/23/2016 - 10:58
Permalink
Close to next version?
Hi, I've been eagerly awaiting the next release - I really want to use the moodle compatible version, can't wait :-D
PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mysite/httpdocs/wp-content/plugins/h5p/public/class-h5p-plugin.php on line 1035In the meanwhile I have noticed a php error which keeps getting kicked out, I'm not sure if your aware of. Here's the error:
Any clues? This is obviously from a wordpress installation using the latest plugin & libraries.
icc
Tue, 05/24/2016 - 09:26
Permalink
Hi there, it's cool to see
Hi there, it's cool to see people excited about it! I'm sorry for not being able to be more precise, but the release shouldn't be far off now. Currently there's work being done to ensure that the quality of the release is top notch.
Regarding your PHP warning it appears that the glob() function isn't able to distinguish between errors and empty directories for all systems. However, I haven't see this until now. I created a fix for this warning that will be part of the next release as well: 20494f3
Thank you for reporting!
honeydo
Wed, 05/25/2016 - 21:05
Permalink
Need Smaller H5P File
How can I download and install only come of the content types. Unfortunately I cannot upload into Drupal the entire thing because it is over 2MB and I cannot change that. Can you just get some? There is not an option that I have found to only download individual h5p files.
falcon
Thu, 05/26/2016 - 15:26
Permalink
Hmmmm.... You could do
Hmmmm.... You could do something like this:
karanbharti
Thu, 06/16/2016 - 08:53
Permalink
By Updating H5P libraries some interactive video type of content
By Updating H5P libraries some interactive video type of contents got deleted
falcon
Thu, 06/16/2016 - 09:43
Permalink
Jikes, exactly how and what
Jikes, exactly how and what did you do step by step when those interactive videos got deleted?
karanbharti
Thu, 06/16/2016 - 09:55
Permalink
H5p Library updation
I have updated the H5P library manually through administrator login in server after some couple of days some users who created interactive video contents earlier said preview of their content is not available on any web browser like google chrome,firefox,IE .I have checked the contents physically of particular content ID's then they were not got deleted from "saved content path"
falcon
Thu, 06/16/2016 - 10:15
Permalink
You've replaced the H5P
You've replaced the H5P libraries manually using ssh or ftp or something? That would unfortunately mess up the system :/
This is how content types should be upgraded...
karanbharti
Thu, 06/16/2016 - 10:28
Permalink
H5P library Updation
I have just login though administrator & selected content options then choose H5P libraries then clicked on update library options for each type of contents
falcon
Thu, 06/16/2016 - 10:54
Permalink
Oh, and after that they
Oh, and after that they stopped working? :/
Do you get a javascript error on the pages where they're not working anymore? To check for JS errors press CTRL + SHIFT + J to bring up the browsers console.
karanbharti
Thu, 06/16/2016 - 12:19
Permalink
H5P Issues
karanbharti
Fri, 06/17/2016 - 06:00
Permalink
JS Error while previewing physically missing contents in H5P
Error:-----
"Handler function NRL_getSecurityInfo threw an exception: TypeError: this.transport is null
Stack: DSC_send@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/main.js:1391:5
NEA_addSecurityInfo@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/webconsole.js:2127:5
NRL_getSecurityInfo@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/webconsole/network-monitor.js:267:5
exports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14
NRL_onStartRequest@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/webconsole/network-monitor.js:219:5
Line: 1391, column: 5" ThreadSafeDevToolsUtils.js:80
TypeError: this.transport is null main.js:1391:5
A promise chain failed to handle a rejection. Did you forget to '.catch', or did you forget to 'return'?
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.js...
Date: Fri Jun 17 2016 09:18:17 GMT+0530 (India Standard Time)
Full Message: Win error 3 during operation remove (The system cannot find the path specified.
)
Full Stack: JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: PendingErrors.register :: line 195
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.completePromise :: line 718
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: Handler.prototype.process :: line 973
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.walkerLoop :: line 816
JS frame :: resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js :: this.PromiseWalker.scheduleWalkerLoop/< :: line 750 (unknown module)
When cancelling a request for http://www.techizen.com/wp-content/themes/blogolife/images/favicon.ico because the chrome window went away, it was already canceled!
PlacesUIUtils.jsm:109:0
The resource at "https://platform.twitter.com/widgets.js" was blocked because tracking protection is enabled.[Learn More] blackboard-collaborate.aspx
The resource at "http://www.googleadservices.com/pagead/conversion_async.js" was blocked because tracking protection is enabled.[Learn More] blackboard-collaborate.aspx
The resource at "http://www.google-analytics.com/analytics.js" was blocked because tracking protection is enabled.[Learn More] blackboard-collaborate.aspx
The resource at "http://edge.quantserve.com/quant.js" was blocked because tracking protection is enabled.[Learn More] blackboard-collaborate.aspx
The resource at "http://scripts.demandbase.com/M6Kf6NYd.min.js" was blocked because tracking protection is enabled.[Learn More] blackboard-collaborate.aspx
The resource at "http://ips-invite.iperceptions.com/webValidator.aspx?sdfc=0f3b460c-11218..." was blocked because tracking protection is enabled.[Learn More] blackboard-collaborate.aspx
The resource at "https://www.google-analytics.com/analytics.js" was blocked because tracking protection is enabled.[Learn More] login
The resource at "https://www.google-analytics.com/analytics.js" was blocked because tracking protection is enabled.[Learn More] update-all-content-types
When cancelling a request for http://www.techizen.com/wp-content/themes/blogolife/images/favicon.ico because the chrome window went away, it was already canceled!
PlacesUIUtils.jsm:109:0
The resource at "https://www.google-analytics.com/analytics.js" was blocked because tracking protection is enabled.[Learn More] forum
When cancelling a request for http://www.techizen.com/wp-content/themes/blogolife/images/favicon.ico because the inner window was destroyed, it was already canceled!
PlacesUIUtils.jsm:109:0
The resource at "https://www.google-analytics.com/analytics.js" was blocked because tracking protection is enabled.[Learn More] /
The resource at "https://www.google-analytics.com/analytics.js" was blocked because tracking protection is enabled.[Learn More] user
The resource at "https://www.google-analytics.com/analytics.js" was blocked because tracking protection is enabled.[Learn More] 5500
The resource at "https://www.google-analytics.com/analytics.js" was blocked because tracking protection is enabled.[Learn More] 5501
icc
Fri, 06/17/2016 - 10:47
Permalink
These looks like bugs in
These looks like bugs in Firefox, ref. https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1503026
Make sure you use a stable and up to date version of your browser.
karanbharti
Fri, 06/17/2016 - 11:00
Permalink
I am Using Latest vesion of firefox-->47.0
I am Using Latest vesion of firefox-->47.0 for viewing H5p contentsI am Using Latest vesion of firefox-->47.0
icc
Fri, 06/17/2016 - 11:04
Permalink
Try testing it in another
Try testing it in another browser. Do you get the same error messages?
karanbharti
Fri, 06/17/2016 - 11:08
Permalink
Having same issues in google chrome web browser
Issue
icc
Fri, 06/17/2016 - 11:13
Permalink
Does that mean that you get
Does that mean that you get the same error messages in the console? (Ctrl+Shift+J in Chrome)
How about if you view example content on h5p.org, do you get the same error messages?
Try disabling any 3rd party extensions or plugins you might have enabled in your browsers.
karanbharti
Thu, 06/16/2016 - 08:54
Permalink
By Updating H5P libraries
By Updating H5P libraries some interactive video type of content
karanbharti
Thu, 06/16/2016 - 12:25
Permalink
Screenshot of H5p missing contents
falcon
Fri, 06/17/2016 - 09:52
Permalink
Screenshot isn't there. Did
Screenshot isn't there. Did it display correctly yesterday=?
jurre
Thu, 06/23/2016 - 11:16
Permalink
Hi there, i see that the file
Hi there, i see that the file has been updated. Is there anywhere a changelog that i can read to know which changes has been made?
falcon
Thu, 06/23/2016 - 11:22
Permalink
Yes, will be published in a
Yes, will be published in a newsletter soon. Waiting for a video from someone in the community.
mitchz
Wed, 06/29/2016 - 13:56
Permalink
i'm curious too find out what
i'm curious too find out what has changed before i update. Any idea when?
falcon
Fri, 07/01/2016 - 15:19
Permalink
Today :)
Today :)
TeachingByTopic
Thu, 07/28/2016 - 13:02
Permalink
Moodle Libraries, only up to font awesome?
I installed H5P on Moodle 3
I downloaded the libraries from https://h5p.org/update-all-content-types (not sure if the download at the bottom of this page is correct?)
uploaded to Moodle
but the library list stops at Font Awesome and i am unable to find a way to install all libraries
any ideas?
TeachingByTopic
Thu, 07/28/2016 - 13:11
Permalink
thought i would add a screen
thought i would add a screen shot to show the installed libraries:
icc
Thu, 07/28/2016 - 13:14
Permalink
If you try adding and an H5P
If you try adding and an H5P activity to a course, can you see 'Interactive Video' as a content type option?
icc
Thu, 07/28/2016 - 13:12
Permalink
That is strange, are you
That is strange, are you getting any error messages?
Also, if you could check your browser's console (Ctrl+Shift+J in Chrome) and the web server's error log, that would be good.
If you can't find any error message, you could try enabling debugging before uploading: https://docs.moodle.org/31/en/Debugging#In_config.php
TeachingByTopic
Thu, 07/28/2016 - 14:00
Permalink
error messages and optionsi
error messages and options
i have the following options when choosing to create content:
i tried to upload a fill in the blanks example from H5P and the errors are on the screen shot
icc
Thu, 07/28/2016 - 14:04
Permalink
Are you sure you're logged in
Are you sure you're logged in as an administrator? It looks like you don't have permission to upload H5P Content Types.
What happens if you upload the file through mod/hvp/library_list.php ?
TeachingByTopic
Thu, 07/28/2016 - 14:26
Permalink
i am the only user at the
i am the only user at the minute - just checked and i am set as the main admin
tried uploading again and the same
just to add i have Moodle 3.1 and PHP version 7 (not sure if that makes a difference)
Upload through mod/hvp/library_list.php ?
i am new to Moodle and only chose it as i can link content to existing Joomla site - are you talking about ftp to a file location, sorry a bit unsure what you mean
icc
Thu, 07/28/2016 - 14:35
Permalink
There are two ways to upload
There are two ways to upload H5P files: One is the Add Activity Form where you upload H5P Content, the second is the Library List where you upload Content Types only. So, what I meant was the second form: https://yourmoodlesite.com/mod/hvp/library_list.php
PHP7 should not be an issue.
I find it strange that you get an error about not having permission. You should be able to check your user's permission through: admin/roles/check.php?contextid=1 (filter on your user and 'H5P')
TeachingByTopic
Thu, 07/28/2016 - 15:00
Permalink
checked permissions and yes
checked permissions and yes for all of them
i uninstalled the plugin and then reinstalled it and now i get a few more libraries than before but still not all of them (literally get a few more drag and drop options)
i am happy to PM you the login details to see if you can install fully?
i have uninstalled so it is ready to be installed again
icc
Thu, 07/28/2016 - 15:05
Permalink
Hm… this is strange. Yes,
Hm… this is strange. Yes, please use the contact form linked to at the bottom of the page and I'll have a look!
orbiton
Sun, 08/07/2016 - 01:04
Permalink
Moodle 3.1.1+ | H5P | can't update library - getting red squares
Moodle 3.1.1+ | H5P | can't update library - getting red squares - i've opened a post about this: https://h5p.org/node/20955 - hoping that someone could help me with this
orbiton
Mon, 08/08/2016 - 00:11
Permalink
Moodle 3.1.1+ | H5P | can't update library - getting red squares
Hi There,
I'm new to moodle and H5P in general.
I've just finished to set-up a Ubuntu 16.04.1 Server + LAMP + moodle
I've added the H5P Plugin manually because the /var/www/html/moodle folder is writeable only by the root user - all other users (www-data included - can only read from that location - that is the recommended way to install moodle by the following resource
resource: https://docs.moodle.org/31/en/Installing_Moodle
When i'm trying to upload H5P Library - it fails without an error message - I've added a gif the illustrates the actions that i've made.
Update #1: even after updating write permissions for the path - /var/www/html/moodle/ - still the same result.
Is there another way to install the H5P Library by using the Terminal only?
Thanks,
Or Biton.
Screencast of the actions that i've made: https://h5p.org/sites/default/files/2016-08-06_21-21-53.gif
stopbit
Mon, 07/24/2017 - 18:08
Permalink
Some errors in libraries
Hi,
I've checked my apache errors logs today and see a number of issues. I am using the latest libraries on wordpress.
Here's the errors:
Note: I have added a filter that refers to this css file. The css file referenced, hides the twitter share link at on summary slides for the course presentations activity - not sure why it says forbidden, it's publicly accessible.
Note: The above error occurs when in editing mode.
Note: The error here is obvious, as TWO forward slashes are in use for the url of the file (h5p//score-tracking.js). This error occurs when trying to view the results of a course presentation.
I have manually updated the libraries with this file name: official-h5p-release-20160802.h5p
The name seems to indicate the date for these libraries as: 2nd August 2016, however it states on the page the libraries are from : The H5P file was last updated on 19th of July 2016.
I have also downloaded the new Personality Quiz activity and manually updated it to my Wordpress as this obviously is not contained within the latest release of libraries as stated above.
I hope we can get these errors fix soon :-D
Thanks
thomasmars
Tue, 08/23/2016 - 09:45
Permalink
Hi,
I have updated the date to reflect the actual last update.
Thomas
stopbit
Tue, 08/23/2016 - 14:32
Permalink
H5P apache errors
Hi Thomas
Many Thanks
thomasmars
Wed, 08/24/2016 - 13:32
Permalink
Thanks,
I think I see what might be causing some of your problems. You're using the https://github.com/h5p/h5pmods-wordpress-plugin/blob/master/h5pmods.php file, but you have not removed the data. h5pmods.php is not supposed to be added straight into wordpress, it is a template with example data that you must remove or modify.
I have tried to reproduce all of these in my environment, but I am not able to. I can only give you suggestions:
2) What filter are you using ? Is there any way to see the code for this ? Be sure to check the connection with h5pmods.php file.
3) Seems like it iterates over your css : if (preg_match ('/:\/\//', $css->path) === 1) { . Make sure that your added css has a path attribute.
4) This is from the example data in h5pmods.php, please remove the template data.
Let me know if cleaning up the h5pmods.php file works out for you.
Thomas
stopbit
Wed, 08/24/2016 - 15:24
Permalink
H5P Mods
Hi Thomas,
Thank you for your helpful reply. I have checked the H5P Mods plugin.
You were right about the data and clearing up the h5pmods file..
Essentially there was some code that was trying to alter the Javascripts, referencing a js script that did not exist at the location. Additionally a forward slash had been used for hte relative url producting a double shash: /wp-content/uploads/h5p//score-tracking.js
I have also moved my css file to a different location, which does not kick out any errors for file access.
So I removed this function around line 93 - 103 in the h5pmods.php file for H5P Mods plugin. The fixed the script not accessible issue:
<code>
/* commented out unused code
function h5pmods_alter_scripts(&$scripts, $libraries, $embed_type) {
if (isset($libraries['H5P.DragQuestion'])) {
$scripts[] = (object) array(
// Path can be relative to wp-content/uploads/h5p or absolute.
'path' => '/score-tracking.js', /*I notice the slash should be removed to avoid double forward slashes for the path if referencing a single file*/
'version' => '?ver=1.2.3' // Cache buster
);
}
}
add_action('h5p_alter_library_scripts', 'h5pmods_alter_scripts', 10, 3);
*/
</code>
I then changed the path referenced for the css file from it's specific location, to a relative location under /wp-content/uploads/h5p/
Changed line 120 from: 'path' => '(http: // domain omitted)/wp-content/themes/enfold/css/h5p-custom.css',
Relative path did not working - the css file was not loaded: Changed line 120 to: 'path' => 'css/h5p-custom.css',
Relative path Successful: Changed line 120 to: 'path' => '/css/h5p-custom.css',
OR
Specific path Successful: Changed line 120 to: 'path' => '(http:// my domain omitted)/wp-content/uploads/h5p/css/h5p-custom.css',
I created a folder named css under /wp-content/uploads/h5p/ and moved the css file to this location i.e. : /wp-content/uploads/h5p/css/h5p-custom.css
This fixes the issue with access to the css file.
The part I don't quite understand is that this error no longer shows in my logs, which is great, but without checking don't know why it's disappeared:
mod_fcgid: stderr: in /var/www/vhosts/my domain/httpdocs/wp-content/plugins/h5p/h5p-editor-php-library/h5peditor.class.php on line 377, referer: http:// my domain /wp-admin/admin.php?page=h5p_new&id=113
Many thanks for your assistance Thomas! All seems well now.
thomasmars
Thu, 08/25/2016 - 10:09
Permalink
Hi,
I suspect it has to do with the parsing of your css. The code was concerning the path of your css, so since you have no errors regarding the css anymore, I think this was also fixed.
Happy to hear that it worked out! :) Enjoy
stopbit
Wed, 08/31/2016 - 11:31
Permalink
That'll teach me
Hi Thomas,
Yeah, that'll teach me for not checking code templates before I implement them, haha.
All is well now, thanks again
olaseni@28
Wed, 08/31/2016 - 09:32
Permalink
about h5p intreactive contents
pls, i need video series that will assist in using this contents
fnoks
Wed, 08/31/2016 - 09:39
Permalink
Have you looked at the
Have you looked at the tutorials here?
FelipeIG
Tue, 10/04/2016 - 17:21
Permalink
how I can insert a quiz?
how I can insert a quiz? I have the plugin in moodle and the following appears. On page does not appear the option to create a quiz (question set).
icc
Wed, 10/05/2016 - 11:13
Permalink
If you go to the H5P
If you go to the H5P Libraries page on /mod/hvp/library_list.php – can you spot the Question Set?
You could try downloading the H5P file attached on the Update/install all recommended content types page and then uploading to the H5P Libraries page. This might fix the issue, but look out for any error messages.
stopbit
Tue, 10/11/2016 - 11:50
Permalink
What happened to 'Game'?
Hi,
Just wondering, whatever happened to the game activity? I don't seem to be able to find it.
Thanks
thomasmars
Wed, 10/12/2016 - 09:39
Permalink
Hi,
I assume you're talking about the content type called "Board game". It has been unpublished from the H5P.org examples & downloads. This is because it has been reviewed and found too hard to create good content with. The content type can still be downloaded from github though if you insist on using it :)
Pages