PHP 8.0 or PHP 8.1 same problem
Plugin Author
icc0rz
(@icc0rz)
Hi, the error you are seeing should not be causing your issue. When you copied the site, did you both copy the file structure and create a new database?
Hi @icc0rz, thanks for swift reply! I made a copy of the site with Akeeba back-up software to a test domain.
Good morning.
It definitely has to do with php version. Have revert it to 7.4 on the test environment and then I see all modules again.
But the site server software will have to go to 8.0.
What do you think? How can it be solved.
Plugin Author
icc0rz
(@icc0rz)
Could you open the network tab in the browser(Ctrl+Shift+J) and inspect the AJAX request loading the data? It should be the one failing.
Good afternoon @icc0rz, after reverting back to php 7.4 this helped because now I’m again with the server to 8.0 and I see all the modules!
So that’s great. But also a bit odd or is that logical? Or did the hosting company changed a thing.
Under 8.1 I see still all the modules, except with debug=true I get a few warning:
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/test004/domains/h5p.testsite.nl/public_html/wp-content/plugins/h5p/admin/class-h5p-plugin-admin.php on line 547
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/test004/domains/h5p.testsite.nl/public_html/wp-content/plugins/h5p/admin/class-h5p-content-admin.php on line 67
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/test004/domains/h5p.testsite.nl/public_html/wp-content/plugins/h5p/admin/class-h5p-content-admin.php on line 179
Good afternoon @icc0rz, no extreme hurries but do you have an idea what can be done about this issue? Or are you still busy with it.
And have a nice weekend, almost!
Plugin Author
icc0rz
(@icc0rz)
This shouldn’t be related to the PHP version you are running, most likely there is a third-party plugin or theme added that is doing something that it shouldn’t and crashing whilst doing so.
When I test the H5P plugin on other WordPress sites with PHP 8.2 and 8.3 I am not experiencing the same type of problem.
I would start with checking logs and request data to find out why the request isn’t returning the data it should. A different approach would be disabling other plugins until it starts working.
Also, if you don’t mind sharing access I could also have a look at the crashing page. You can reach me at frode . petterson (at) h5p.group.
Hi @icc0rz, I’ve only now your plug-in and default WP theme and still this error:
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/albus004/domains/h5p.testsite.nl/public_html/wp-content/plugins/h5p/admin/class-h5p-plugin-admin.php on line 547
Plugin Author
icc0rz
(@icc0rz)
Deprecation notices are used to inform developers that specific functions will not be available some time in the future. It’s not actually an error and doesn’t affect the functionality of the site. By default, these are off when setting up PHP for a production environment, so this means you must have enabled them, but you probably shouldn’t unless you are a developer.
Here’s a reference to how error_reporting should be configured for production: https://github.com/php/php-src/blob/master/php.ini-production#L110
Good afternoon @icc0rz, of course I’ve enabled Debug. I wanted to find out where the problem lies of not showing the list of H5P content.
But good news, as soon as I disabled the Debug function I saw the H5P content list with PHP 8.1 on server activated.
So finally problem solved.
Plugin Author
icc0rz
(@icc0rz)
That is great to hear. The deprecation messages should go away with the next release of the plugin.