up2university / docker-moodle

A Dockerfile that installs the latest Moodle, Apache, PHP, and MySQL
3 stars 9 forks source link

Not able to use the same kind h5p exercises in moodle instances #117

Closed ivanoterouvigo closed 5 years ago

ivanoterouvigo commented 5 years ago

Hi everyone!

H5P is a kind of activity which could be used to create interactive activities. As a plugin of moodle, I have the posibility of create and activity inside moodle.

I have different behaviour in the test moodle instance and in the production instance. I mean. At https://learn.test.up2university.eu

I am able to add all this kind of h5p exercises.

h5p_all_activities_v001

But if I use the production moodle instance. I mean. At learn.up2university.eu

I only see two kind of exercises.

h5p_all_activities_v002

I checked this with different roles but the behaviour is the same as I explain before.

Or you have the posibility to upload a h5p exercise made at other place.

athird commented 5 years ago

This is a weirdness with H5P: it seems that unless an administrator goes through the H5P options (when adding an H5P activity) and clicks Get, those options aren't available for other users. @msbachler is looking at automating this. In the meantime, I'll do it for the various platforms.

msbachler commented 5 years ago

I have written and tested a script that will automatically install all the h5p libraries. I have testing in a separate running Moodle and in a Moodle build using the up2u docker build. It seems to work fine. So I have tentitavely commited the required code changes into docker-moodle. But I have not added a pull request as I feel someone else should test it as well, given that it is quite a big thing it does.

andreacorleto commented 5 years ago

I have the same issue of Ivan. H5P in the production moodle instance has not all the content types (only 20 content types) that are available in the test instance (38 content types). For instance, currently Interactive video content is missing, but it is the most important h5p feature and one of the best to be used by teachers. It does not depend on roles and privileges (I've tried to add h5p content as manager, course creator and teacher).

michzimny commented 5 years ago

@athird, could you please manage to fix the issue in production? It would be either by manual fix or by deploying the current develop branch with Michelle's fix.

athird commented 5 years ago

@michzimny It'll have to be by deployment - looking at it manually, it only lists those 20 content types even to an administrator, so I can't add the others by hand.

michzimny commented 5 years ago

Ok, so we should probably schedule new deployments to all instances as there are other pull requestes by Michelle that I merged today.

athird commented 5 years ago

@michzimny Just sent you an email about it. :-)

athird commented 5 years ago

Fixed, those content types weren't compatible with the version of H5P we had installed, it's upgraded now.