Just installed wordpress plugin, unable to load libraries or create content
I just installed the h5p plugin for the very first time and I'm unable to create any h5p content. It seems the libraries are unable to load?
- If I navigate to “All h5p content” i get an error message “Failed to load data.”
- If I navigate to “Add new” I get an error “unable to load libraries”
Deprecated: Creation of dynamic property H5PWordPress::$plugin_slug is deprecated in /var/www/wptbox/wp-content/plugins/h5p/public/class-h5p-wordpress.php on line 74
There are also some sanitize_string error messages at the top of the screen.
_SANITIZE_STRING is deprecated in /var/www/wptbox/wp-content/plugins/h5p/admin/class-h5p-plugin-admin.php on line 553
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /var/www/wptbox/wp-content/plugins/h5p/admin/class-h5p-content-admin.php on line 67
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /var/www/wptbox/wp-content/plugins/h5p/admin/class-h5p-content-admin.php on line 179
Let me know if any additional info would be helpful.
EDIT: I tried deactivating and deleting the plugin, then installing it again. This time when I navigated to "Add New" I clicked the button asking for consent to connect to the hub, then it said Loading, please wait.. and then again the same "Error, unable to load libraries"
Error, unable to load libraries.
Deprecated: Creation of dynamic property H5PWordPress::$plugin_slug is deprecated in /var/www/wptbox/wp-content/plugins/h5p/public/class-h5p-wordpress.php on line 74
new h5p user
Wed, 02/05/2025 - 01:05
Permalink
My hosting tech support said
My hosting tech support said the problem is related to the error: R_SANITIZE_STRING is deprecated in /var/www/wptbox/wp-content/plugins/h5p/admin/class-h5p-plugin-admin.php on line 553
They also said
"all the settings from this article [ https://h5p.org/installation/configure-php ] are already implemented. You can check with the developers of this plugin is anything else specific can be implemented on the server, but we did not see anything in the logs.
We suspect something is wrong with the plugin files itself."
otacke
Wed, 02/05/2025 - 06:20
Permalink
I am pretty sure it's some
I am pretty sure it's some issue with the plugin on your setup, but the cause definitely not one of the messages that you shared.
These messages that are issued by PHP and are merely deprecation warnings. They tell you that the code uses PHP features that will be removed in a future version of PHP, but the features still work. It's a message intended for developers, so they know that they should update their code.
So, good idea to mention these messages, but they do not help to pin down the issue, unfortunately. You'd probably want to share more information about the server environment to help reproduce the issue.
And a note: Deprecation warnings do only show up if PHP's error reporting is set accordingly. A server in production should normally not show them on screen (but still log them on the server), as they may reveal sensitive system information that could help breach security - and it feels like causing a bad user experience. You might want to ask your service provider why error reporting is set that way.