h5p content and content-types after moodle upgrade from 3.9.5 to 4.1.8+

Hello everyone,

I am admin in our moodle which has been upgraded - we use this:

https://prnt.sc/rRJ53NaX_z4V

I have tried to migrate the content types with this tool https://moodle.org/plugins/tool_migratehvp2h5p but I get for example the error message "Error migrating hvp activity with ID 399: error/invalidpackage".

In the courses themselves, the content types are displayed as follows - some without an icon 

https://prnt.sc/6ThdDD9l7GK2

When I open existing course content, I see for some - "Loading, please wait"

https://prnt.sc/IcKf-SHDi_XF

If I want to change a content type, the following (too small) window appears

https://prnt.sc/B6rbqhFu0XUV

I have looked at this in the browser inspector, it is an iframe, which is only 156px high - at least here I can change the height and click on the confirmation

https://prnt.sc/dlQfnLC47xDE

Do any of you have experience with this behaviour?

What can I do?

Regards - Marco

 

 

Content types: 
BV52's picture

Hi Marco,

Can you please provide the following:

  1. Any browser console errors
  2. Any PHP errors
  3. Browsers used

-BV

Hello BV, nice to read from you!

Maybe I'll start again like this - it's about an upgrade from 3.9.5 to 4.1.8.

In moodle version 3.9.5 everything worked fine, interactive H5P content could be added and the installation still exists and works.

After the upgrade, interactive content is no longer displayed in the courses.

I logged in to the H5P Hub after the upgrade, we were not logged in to the hub before, the login also appeared in moodle under Plugins/H5P/H5P settings, suddenly it was gone again

https://prnt.sc/FrCsfI0b4lbU

Now I see the message in the courses:

Missing Site UUID or Hub Secret. Please check your Hub registration.

When I try to log in to the hub again, I get the following error message:

Site UUID is not unique. This must be fixed by an admin by restoring the hub secret or remove the site uuid and register as a new account with the content hub.

When I try to update content types in the courses, sometimes it works and sometimes I get messages like this:

Error during parameter processing:
Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://test1.dialogica.at/pluginfile.php/1/mod_hvp/libraries/H5P.Dialog...' failed to load.
Error during parameter processing:
Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://test1.dialogica.at/pluginfile.php/1/mod_hvp/libraries/H5P.Dialog...' failed to load.
Error during parameter processing:
Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://test1.dialogica.at/pluginfile.php/1/mod_hvp/libraries/H5P.Dialog...' failed to load.
Error during parameter processing:
Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://test1.dialogica.at/pluginfile.php/1/mod_hvp/libraries/H5P.Dialog...' failed to load.
Error during parameter processing:
Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://test1.dialogica.at/pluginfile.php/1/mod_hvp/libraries/H5P.Dialog...' failed to load.
Error during parameter processing:
Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://test1.dialogica.at/pluginfile.php/1/mod_hvp/libraries/H5P.Dialog...' failed to load.

You have successfully updated 6 content instance(s). Back

In edit mode in the course, it seems to try to load the interactive content, but nothing more than "Loading, please wait ..." happens.

After activating debugging, I see the following error message when I switch to the start page

Warning: getimagesize(/data/web/e111862/html/moodle_save/.htyzwzvlxxq49f.data/filedir/bc/ef/bcef37735d3822dab88045c6fd706ff9259771af): Failed to open stream: No such file or directory in /data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 418 Warning: getimagesize(/data/web/e111862/html/moodle_save/.htyzwzvlxxq49f.data/filedir/45/45/4545345815ac7f756f9afb61e462231fb9b2f8a4): Failed to open stream: No such file or directory in /data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 418 Warning: getimagesize(/data/web/e111862/html/moodle_save/.htyzwzvlxxq49f.data/filedir/41/03/41031028b067dcaaea2454943561b5202f5f03e8): Failed to open stream: No such file or directory in /data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 418 Warning: getimagesize(/data/web/e111862/html/moodle_save/.htyzwzvlxxq49f.data/filedir/fe/79/fe79b16ce819915e755e7fbe47710d337a27bb56): Failed to open stream: No such file or directory in /data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 418 Warning: getimagesize(/data/web/e111862/html/moodle_save/.htyzwzvlxxq49f.data/filedir/7b/b5/7bb555e493ca877e25f9ff60c7baac30433aa5d6): Failed to open stream: No such file or directory in /data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 418 Warning: getimagesize(/data/web/e111862/html/moodle_save/.htyzwzvlxxq49f.data/filedir/59/5d/595dac0edcc57cb183171416bdeae9654a250fb8): Failed to open stream: No such file or directory in /data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 418

At the bottom of the page I see the following warning:

Warning: is_readable(): open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/data/web/e111862/html/moodle_save:/data/web/e111862/phpsession:/data/web/e111862/phptmp:/tmp:/usr/bin) in /data/web/e111862/html/moodle_save/lib/moodlelib.php on line 9686

When I switch to a course, the following information is displayed:

https://prnt.sc/LZhM-C4hVm-3

and these warnings:

/data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 271

Warning: file_get_contents(/data/web/e111862/html/moodle_save/.htyzwzvlxxq49f.data/filedir/b6/fb/b6fbf7dea134164171da1f1c652e1de609a972f7): Failed to open stream: No such file or directory in /data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 271
Warning: file_get_contents(/data/web/e111862/html/moodle_save/.htyzwzvlxxq49f.data/filedir/7c/4f/7c4f8300253f567c8e9790ecc4f02e5c1a6fb41f): Failed to open stream: No such file or directory in /data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 271
Warning: file_get_contents(/data/web/e111862/html/moodle_save/.htyzwzvlxxq49f.data/filedir/49/93/4993fa5a962ec69f369b28f551019c3dbbfaddc0): Failed to open stream: No such file or directory in /data/web/e111862/html/moodle_save/lib/filestorage/file_system.php on line 271

I am using the Chrome, but also Firefox.

What more can I do?

Regards - Marco

 

 

BV52's picture

Hi Marco,

Thank you for the details. This may be related to the issue that was reported here. I'll will reach out to the dev team for assistance but I cannot give any on when this will be resolved.

-BV

... thanks for the information BV, besides the problem with the H5P Hub, I must have another problem too, because the interactive content is no longer displayed in my courses - I also have problems updating the content types.

Is there a way to uninstall and reinstall H5P without deleting the content?

Regards - Marco

BV52's picture

Hi Marco,

I don't know if this is possible but I will reach out to the dev team. No promises though as the team's schedule is quite full. If anyone in the community have any suggestions feel free to post your comments.

-BV

BV52's picture

Hi Everyone,

Can someone please provide steps on how to reproduce the errors. I can't reproduce this issue.

-BV