Interactive Video crash the WP
Hi
I use WP and Learndash. I have updated WP to the latest version and PHP to V8.0 for security reasons.
Everything works fine. But when I tried to change somethink in interactive video, WP crashes.
I have prepared two examples, a shorcode with the interactive video that has not been changed and works, while the other example, with the interactive video changed and that causes the crash.
Example of course that interactive video runs well: https://german-course-care.online/courses/test-interactive-video/
Example of course that interactive video crash: https://german-course-care.online/courses/test-interactive-video-crash/
I am attaching system information from the email that I received from the WP
I cannot download the h5p file to upload beacuse the WP crash when I trying to edit it.
Thansk a lot
Manel
BEN Europe
Tue, 09/12/2023 - 12:16
Permalink
Right liks
Sorry, the right link are:
https://german-course-care.online/test-interactive-video-runs-well/
https://german-course-care.online/test-interactive-video-crashes/
Thanks in advanced
otacke
Tue, 09/12/2023 - 12:51
Permalink
Hi!It's really, really,
Hi!
It's really, really, really sad. This was fixed on December 17 in 2019 in the core of H5P. Can't tell why the plugin for WordPress does not include a version of H5P core that contains this fix (or that does not contain the code that can cause trouble).
It should be safe to manually remove the code outlined in red the link above from the h5p.classes.php file on your server, but still: no backup, no pity! And given that the cause would need to be checked on your system, I cannot rule out that some other thing going wrong with the content when you have done the changes.
Hopefully, the H5P core team is going to release an update of the WordPress plugin including the latest production version of H5P core. It's overdue.
Best,
Oliver
BEN Europe
Tue, 09/12/2023 - 18:43
Permalink
Thanks for the answer
I have a clone site and can restore the old backup and after downloading the original unchanged H5P to upload to the online site. Let's see if it works.
I hope that a new update of the plugin is made as soon as possible because now I have distrust in changing or creating a new interactive video.
Many thanks in advance
Best Regards
Manel
BEN Europe
Wed, 09/13/2023 - 11:58
Permalink
Doesn't work
Hi
This solution is not possible. By default I have not allowed to download the h5p file online. And when I try to edit the interactive video to allow the buttons to download, WP crashes.
Now what I'm going to do is restore from an old backup only the Wp-contents h5p files and the referenced BD tables of the h5p. I'll let you know if it works or not.
Best
Manel
otacke
Wed, 09/13/2023 - 16:19
Permalink
Hi!Not sure how this is
Hi!
Not sure how this is related to what I suggested. You need to modify the h5p.classes.php file on your server.
Best,
Oliver
BEN Europe
Thu, 09/14/2023 - 06:31
Permalink
The solution proposed runs well
Many thanks Olivier I have restored the H5p files and tables of the DB referenced in H5p and the interactive video works if I do not edit it. I followed your recommendation and removed the code in h5p.classes.php that you mentioned (link) and now I can modify the interactive video without WP crashing.
I really appreciate your help, Oliver.
This bug must be fixed in the next update of the plugin
Thank you so much!
Regards
Manel