Hello!
I suspect you may be cloning the plugin directly from the GitHub repository? In that case you need to ensure that you’ve run git submodule update –init –recursive, as per the installation guidelines. The master branch currently contains some functions not supported by WordPress, however the official release is pointing to the correct commits for submodules.
Hi,
I am installing the plugin from WordPress repo, through composer, which feeds the package from here https://wordpress.org/plugins/h5p/:
composer require wpackagist-plugin/h5p
Any suggestions?
Thank you!
I just tested a completely fresh setup to test whether composer is indeed serving the correct files with "wpackagist-plugin/h5p": "^1.17" and it seems the submodules have the correct code in this case too, so it doesn’t seem to be a packaging problem.
Perhaps you could provide some more details about your composer setup, and how exactly the h5p plugin is fetched? And what version it was updated from? Potentially removing it from composer (composer remove wpackagist-plugin/h5p) and re-running composer require wpackagist-plugin/h5p might help. Essentially, the problem for you seems to be that files in the h5p/h5p-php-library directory are not up-to-date.
Removing and adding it back did the trick, it must have been some composer cache on my end.
Thank you so much for assisting with this, it works now!