H5P not working in moodle 3.8 (master) localhost

H5P not working in moodle 3.8 (master) localhost

by Joseph Rézeau -
Number of replies: 12
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

I'm testing moodle 3.8 (master) on my localhost machine.

Version Moodle 3.8dev (Build: 20190905)

I see that in that future version of Moodle the H5P plugin is included in the default plugins. Unfortunately I cannot get it to work on my local machine.

With full debug mode on, it returns a number of errors:

Notice: Undefined property: stdClass::$httpswwwroot in C:\xampp\htdocs\moodle_master\mod\hvp\locallib.php on line 40

Notice: Undefined property: stdClass::$httpswwwroot in C:\xampp\htdocs\moodle_master\mod\hvp\locallib.php on line 107

Notice: Undefined property: stdClass::$httpswwwroot in C:\xampp\htdocs\moodle_master\mod\hvp\locallib.php on line 155

Notice: Undefined property: stdClass::$httpswwwroot in C:\xampp\htdocs\moodle_master\mod\hvp\locallib.php on line 188

and also in the console:

Échec du chargement pour l’élément <script> dont la source est « http://mod/hvp/library/js/jquery.js?ver=2019052100 ». modedit.php:1:1
Échec du chargement pour l’élément <script> dont la source est « http://mod/hvp/library/js/h5p.js?ver=2019052100 ». modedit.php:1:1
Échec du chargement pour l’élément <script> dont la source est « http://mod/hvp/library/js/h5p-event-dispatcher.js?ver=2019052100 ». modedit.php:1:1

and many other errors!

Any idea?

 

Average of ratings: -
In reply to Joseph Rézeau

Re: H5P not working in moodle 3.8 (master) localhost

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
I don't have any ideas but since the H5P plugin currently only works with Moodle 3.7, I wonder if there is something incompatible with 3.8? Also I understand that H5P integration will be in stages, so perhaps the whole plugin 'as is' won't work with 3.8 anyway.
In reply to Joseph Rézeau

Re: H5P not working in moodle 3.8 (master) localhost

by Luiggi Sansonetti -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hi Joseph

There is a next MUA Town Hall about H5p :


All Moodle users will be welcome to join us;

10 September. 6pm - 7pm UTC.
https://ecboces.zoom.us/j/7197759999
H5P concepts and approach for Moodle 3.8 and beyond.
Guest speakers: Carlos Escobedo (HQ Developer), Rafael Lechugo (HQ UX team)

Integration of H5P, Moodle's most popular activity plugin, into Moodle core is a key step forward for the platform. There are a number of issues with H5P in Moodle: security of questions, recording grades, the H5P activity selector, use of the H5P website, future developments, etc. How is the Moodle HQ team approaching this challenge?

Moodle wants to know your view. The MUA needs you. Please join our conversation tomorrow.

You may be part of (mais bon big grin)
Average of ratings: Useful (2)
In reply to Luiggi Sansonetti

Re: H5P not working in moodle 3.8 (master) localhost

by Acqua Alta -
Hi Luiggi,
I wanted to join this online meeting, but couldn't. Is there any chance that there is a recording of it available, so I would be able to watch it?
In reply to Acqua Alta

Re: H5P not working in moodle 3.8 (master) localhost

by Luiggi Sansonetti -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hi

I think records are only for members.

I'll check this and back soon.
In reply to Luiggi Sansonetti

Re: H5P not working in moodle 3.8 (master) localhost

by Acqua Alta -

Please please make an exception 😀

This meeting was open for non-members. Do the other meetings too?


Anyway, thanks for checking.

In reply to Joseph Rézeau

Re: H5P not working in moodle 3.8 (master) localhost

by Sander Bangma -
Hi - this is because httpswwwroot has been deprecated in Moodle 3.8. We've submitted a change request to the H5P plugin maintainers to update the plugin. After that it will work again with Moodle 3.8

https://h5ptechnology.atlassian.net/browse/HFP-2858
Average of ratings: Useful (1)
In reply to Sander Bangma

Re: H5P not working in moodle 3.8 (master) localhost

by Acqua Alta -
Hi Sander,
Do you refer to the H5P (external) plugin that can be installed by the admin, or to the built-in (internal) plugin that is supposed to be included in Moodle 3.8?

From reading what written in this discussion, one may think that even in Moodle 3.8 there is value in installing the external plugin since it gives features that the built-in H5P support won't give. Is it true? Wouldn't both the internal and external plugin disrupt each other?

Please clarify this issue.
In reply to Acqua Alta

Re: H5P not working in moodle 3.8 (master) localhost

by Sander Bangma -
Hi Acqua Alta,

That is correct, for Moodle 3.8 there will still be value in installing the external plugin (e.g. to create H5P activities that link to gradebook and have activity completion, etc).

Moodle 3.8 will include:
- Built in H5P renderer/player (significant back-end work)
- Ability to add H5P content easily through a button in atto
- A H5P filter

So you will be able to upload H5P files or link to them and Moodle will be able to play them without needing the external plugin.
And yes, the external plugin will be able to work next to these features in Moodle 3.8, for when you want to create new H5P activities in Moodle.

For Moodle 3.9 we will work on building in support for the creation of H5P activities in Moodle that link to gradebook
Average of ratings: Useful (3)
In reply to Sander Bangma

Re: H5P not working in moodle 3.8 (master) localhost

by Jeff Ruth -
I've looked at the links above that indicate further development of H5P capability/integration within 3.8 and 3.9. Thanks. Currently, if a user wants an H5P to be gradable within Moodle, that H5P must actually be built within Moodle, rather than uploaded from an outside source (e.g. H5P.com or .org). Will this situation change in 3.8--will it be possible to upload an H5P file and have its grade accumulate into the Moodle gradebook? Would be a strong addition.
In reply to Sander Bangma

Re: H5P not working in moodle 3.8 (master) localhost

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Sander,

I don't understand the situation re this issue.

It's not clear whether the solution is with the H5P core team or the Moodle core team. I just posted a little bump at https://h5ptechnology.atlassian.net/browse/HFP-2858 and Thomas Marstrander replied that they (H5P) are waiting for someone (from Moodle) to post a Pull Request.

On the other hand there is report https://tracker.moodle.org/browse/MDL-46267 in the tracker which says it's fixed and closed!

I'm testing on my local Moodle 3.8dev+ (Build: 20191004) with latest H5P Moodle plugin verion 1.19.1 dated 2019081600 and the httpswwwroot bug is still there. Of course, if I create a branch and do a search-replace httpswwwroot to wwwroot on all the files in the mod/hvp dir, the problem disappears.

The Moodle 3.8 QA cycle will start soon, and this problem should really be fixed as soon as possible.

In reply to Joseph Rézeau

Re: H5P not working in moodle 3.8 (master) localhost

by Sander Bangma -
Hi Joseph,

MDL-46267 removes httpswwwroot in Moodle. This change has been implemented and integrated. Hence the issue is closed.

A side effect is that the H5P plugin needs a small modification. This is the request in HFP-2858. So the change needs to occur in the H5P plugin, which you have successfully tested by doing the search and replace.

Thomas is one of the maintainers of the plugin, but it is open source, hence I suspect his comment on the issue is suggesting that you or anyone is free to create that branch and send them a pull request. The Moodle team working on H5P have had their hands full on the integration of the H5P player, but I will reach out to Thomas as well.
Average of ratings: Useful (1)