h5p / h5p-wordpress-plugin

Adds support for H5P Content in WordPress.
https://wordpress.org/plugins/h5p/
71 stars 74 forks source link

Can't delete or activate H5P #100

Open marbaque opened 5 years ago

marbaque commented 5 years ago

I updated H5P to latest version 3 days ago and it just broke. I managed to go into restore mode and deactivate it. Now I can't delete nor activate it. When I try to activate it I get a fatal error with this message:

Warning: require_once(/var/www/sitios/academiamunicipal/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php): failed to open stream: No such file or directory in /var/www/sitios/academiamunicipal/wp-content/plugins/h5p/autoloader.php on line 49

Fatal error: require_once(): Failed opening required '/var/www/sitios/academiamunicipal/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php' (include_path='.:/usr/share/php') in /var/www/sitios/academiamunicipal/wp-content/plugins/h5p/autoloader.php on line 49

For some reason this is the only plugin that I can't delete.

Site I need help with: https://academiamunicipal.uned.ac.cr WordPress 5.2.2 Running PHP version: 7.2.14-1+ubuntu16.04.1+deb.sury.org+1

beckej13820 commented 5 years ago

We are seeing the same problem on a Wordpress 5.2.2 site, PHP 7.2, Ubuntu 18.04. Is there any further debugging information that would help you find the issue?

marbaque, maybe this would get more attention by updating the description to "Fatal Error:No Such File: h5p.classes.php"

beckej13820 commented 5 years ago

Hello:

I think there is a problem with the package at Wordpress.org package that site admins can use to automatically upgrade their sites. When I upgraded H5P this last time, the h5p-php-library and h5p-editor-php-library were not included.

I was able to fix it by going to github, downloading the most recent package of the h5p-php-library and h5p-editor-php-library and uploading it to my site.

To upgrade my site, I had previously used Wordpress' update procedures from the GUI, where I usually expect that all dependencies and subfolders are installed automatically. I believe may be an issue with the packages on Wordpress.org

Hope the additional information helps.

marbaque commented 5 years ago

Yes, I had to manually delete de plugin and install it again. That worked. I haven't updated it to the latest version. It seems that has the bug.

beckej13820 commented 5 years ago

marbaque, are you by chance using the github updater plugin. I believe my problem was related to using the github updater plugin. There is a known issue with Github updater that it cannot clone submodules, which is what the problem was.

This plugin will not work with the Github updater until this issue is resolved.

https://github.com/afragen/github-updater/issues/349

marbaque commented 5 years ago

@beckej13820 I am using github-updater plugin indeed. Though I updated H5P through the core updater, not using the plugin.

I only use that plugin to update my custom theme.