Constant FILTER_SANITIZE_STRING is deprecated in ... plugin-admin.php on line 547 ... content-admin.php on line 67 and 179

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's picture

The H5P team need to update their plugins to work with more current versions of PHP, i.e. PHP 8+

otacke's picture

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 

 

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's picture

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