moodle-mod_hvp
moodle-mod_hvp copied to clipboard
Editor breaking when installing new content type
environment: php 8.0 moodle 4.0.2 hvp-plugin:1.22.3 and 1.22.4 tested in multiple browsers
When creating a new h5p activity instaling a new content type fails (clicking get and then install in th editor), the editor breaks and disappears. The following error is displayed in the browser js console.
The error was remedied by changing to php version 7.4. It seems that the editor is not php 8.0 compatible yet.
Hey there! 👋🏻
I'm facing the same issue. Is there any workaround for it?
El plugin H5P en Moodle, se cuelga instalando "tipo de contenido", SOLUCION, Usar php 7.4
changing to php version 7.4.
Estimados, no es necesario cambiar de versión de PHP. Es un problema de permisos de archivos que se arregla cambiando algunas líneas del: ./mod/hvp/classes/framework.php
En adjunto se los envío. Los cambios están indicados con "MARCA". Saludos. +Andrés
framework.php (https://github.com/h5p/moodle-mod_hvp/files/10564748/framework.php.patch)
I confirm the patch proposed by ing-andres-lopez works but it would be great to apply it to the main project because PHP 7.4 is no more supported. https://www.php.net/supported-versions.php
Estimados, no es necesario cambiar de versión de PHP. Es un problema de permisos de archivos que se arregla cambiando algunas líneas del: ./mod/hvp/classes/framework.php
En adjunto se los envío. Los cambios están indicados con "MARCA". Saludos. +Andrés
framework.php (https://github.com/h5p/moodle-mod_hvp/files/10564748/framework.php.patch)
Excelente. funcionó perfectamente. / Great, it works!
Muchas gracias / Thank you.
I only commented these line
https://github.com/h5p/moodle-mod_hvp/blob/a1a2fa818ff108b9924e04ffa0f7d425a951c69b/classes/framework.php#L247
Obviusly my directories permissions is correctly setted.
I believe that this is the same issue as mentioned here: https://github.com/h5p/moodle-mod_hvp/issues/471
The patch attached to that ticket should fix the issue you're experiencing: https://github.com/h5p/moodle-mod_hvp/pull/472
Fixed by #472 will release an updated plugin asap.
If you want to make the mimimal maintenance for this plugin, it would be great to integrate the Moodle 4 new icon. It is only 2 lines to modify. https://docs.moodle.org/dev/Moodle_4.0_developer_update#Activity_icons