Unable to load the Multiple Choice activity with the H5P plugin for WordPress in PHP 8.1

Hello,
I am using the WordPress LearnPress and H5P plugins to create an e-learning site.
I am encountering the following problem:
- The latest version of LearnPress requires at least PHP 8.1 to run.
- The H5P Multiple Choice activity, which I use a lot to create my exercises, does not work with this version of PHP.
The message “Loading... Please wait...” is displayed permanently. 
However, it does work with PHP 7.4.

Is there a way to get around this incompatibility issue?
Thank you for your help.

 

 



Content types: 
papi Jo's picture

I am using WordPress 6.8.2 with PHP Version 8.3.18 and H5P plugin for WordPress Version 1.16.0 and there is no problem using ALL the H5P libraries, including Multiple Choice, of course.

But I know nothing of LearnPress. Maybe you have a problem with LearnPres?

Hello Papi Jo,

Thank you for taking the time to respond.

I'm not sure LearnPress is involved.
I only use LearnPress to present activities in lessons and courses.
The loading error occurs in the H5P plugin (H5P Content) when I want to create or edit a Multiple Choice activity.

What strikes me is that I have two Multiple Choice libraries, 1.14.9 and 1.16.14. The interface does not offer me the option to delete the older one, which is still used by other libraries.
Isn't this something worth looking into? How can I delete a library without going through the WordPress interface?

Thank you.



 

May I ask, if you use one, which LMS solution do you use?

 

otacke's picture

Hi!

I severely doubt that MultipleChoice is the issue - it does not have a single line of PHP code :-)

Please check your server's PHP error log for something that might help here.

Best,

Oliver