New User, Unable to Install... Anything...

Newbie here. 

I installed the official H5P (v 1.15.7) plugin to my wordpress instalation (v 6.4.3). Everything seems to work fine until I attempt to add new content. When I try to install from the create content dropdown, I receive the error, "Validating h5p package failed. Your PHP version does not support ZipArchive." However, I am on PHP version 8.1.16 so I don't think that error is accurate. 

When I try to manually upload a sample h5p file downloaded from h5p.org, I get this error: "Unable to interpret response. Please check your error log." The H5P "My Results" tab says, "There are no logged results for your user." I checked the WP log and have no errors from the plugin whatsoever. I've tried multiple files all downloaded from H5P.org and have the same result. 

Can anyone help me figure out what's going on? Am I missing something obvious? 

otacke's picture

Hi!

Since you received a hint towards the missing ZipArchive extension, why not first verify that it is really installed and running? The PHP version does not really play a role, ZipArchive still is a separate extension that needs to be installed as well in addition to PHP.

Best,

Oliver 

Man, THANK YOU. I appreciate the very obvious feedback. I just had it in my head that ZipArchive was a WP plugin component and was raking the script for references to it. The PHP extention didn't register at all. As soon as I saw this everything clicked and it was a ten second fix. Thanks for taking the time to reply to such a dud question. 

otacke's picture

You're welcome! 

Thank you for this (obvious) feedback. I was laser focused on Wordpress and plugins I wasn't thinking about PHP extensions. Everything works now. I appreciate you taking the time to respond!