Error: Fatal error: Class 'ZipArchive' not found in /home/efiusnet/public_html/site/wp-content/plugins/h5p/h5p-php-library/h5p.c

Hello,

Upon saving file I get this error. Fatal error: Class 'ZipArchive' not found in /home/efiusnet/public_html/site/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php on line 1651

Please advise.

BV52's picture

Hi cpeterson,

The generic H5P part of the plugin should support PHP versions as low as 5.2 – However, you should always try to stick to the newest supported version available: http://php.net/supported-versions.php
This has to do with the security of your site, data, and users.

Make sure that you enable the ZipArchive extension in PHP as it's required. 

-BV52

The ZipArchive version was to old. I updated it and it's all well.

Thanks a million.

PS I'm creating content using "Course Presentation" How do I add "Speak the words" content element to "Course Presentation"?

It would so cool to add or remove content elements from "Course Presentation". This would be a game changer.

Thanks again.

BV52's picture

Hi cpeterson,

It's good to hear that it's working now.

Adding other contents into Course Presentation would need changes to the code. This documentation is a good place to start. Please note that if you decide to make changes to the code it will be overwritten whenever there is an update. To avoid this it is best to have a pull request in the h5p github repository so that it can be included in the official version.

-BV52

I read your comments. LOL I guess I'll never see these changes. I'm not a coder. I could NOT get  h5pmods-wordpress-plugin to work.

Thanks anyway. Maybe someone will see my idea and write the code and post it.

Best regards.

BV52's picture

Hi cpeterson,

I apologize I forgot to mention you can of course post a Feature Request. This forum is where the core team or someone form the community finds ideas for future development of the contents.

-BV52