Constant FILTER_SANITIZE_STRING is deprecated in ... plugin-admin.php on line 547 ... content-admin.php on line 67 and 179
Submitted by FachLektor.at on Sat, 09/02/2023 - 15:20
Forums:
Hi!
How to fix following errors:
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/ic1cgfmh/psycho.wien/wp-content/plugins/h5p/admin/class-h5p-plugin-admin.php on line 547
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/ic1cgfmh/psycho.wien/wp-content/plugins/h5p/admin/class-h5p-content-admin.php on line 67
Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/ic1cgfmh/psycho.wien/wp-content/plugins/h5p/admin/class-h5p-content-admin.php on line 179
Wordpress 6.3.1
h5p plugin 1.15.6
Only question set content
Thank you for any suggetions!
papi Jo
Sun, 09/03/2023 - 10:44
Permalink
The H5P team need to update
The H5P team need to update their plugins to work with more current versions of PHP, i.e. PHP 8+
otacke
Sun, 09/03/2023 - 13:38
Permalink
Hi!This is not a bug, but a
Hi!
This is not a bug, but a deprecation message. It is a message adressing developers telling them that in some future version of PHP the functions mentioned will stop working. The H5P core team will take care of this. Currently, everything is still working absolutely fine, however.
On a productive system, you should not even see this message as the development error logging by default should be turned off by default.
Best,
Oliver
FachLektor.at
Sun, 09/03/2023 - 14:37
Permalink
Thank you!
Thank you very much for your fast answer, Oliver! I will try to hide the message - it has simply unsettled me.
Kind regards and a pleasant Sunday,
Barbara
otacke
Sun, 09/03/2023 - 17:11
Permalink
Hi Barbara!You will want to
Hi Barbara!
You will want to check the PHP.ini file of your server. On a production site, the `display_errors` should be set to `off` while you may want to keep `log_errors` at or set it to `on` depending on whether you want to log errors. Don't forget to restart the server in order for the new settings to take effect.
Best,
Oliver