"Deprecated" Notification on WP dashboard - HELP!

Hi guys,

There seems to be a problem on my WordPress website with the H5P plugin as a message has just appeared on the dashboard. I have shortened it here for you to see the error/issue type:

 

"Deprecated: Constant FILTER_SANITIZE_STRING is deprecated ... on line 553"

 

I'm not 100% sure but it seems that this problem is resulting in me not being able to make updates or publish new content as a "server error 500" message appears when I try to publish/update a webpage and I cannot actually complete the update etc.

 

Your help with this problem would be very much appreciated as it is essential to my small business.

 

Many thanks is advance,

Dave.

Summary: 
Deprecated Message
papi Jo's picture

WordPress version?

H5P plugin for WP version?

Hi Papi Jo,

Many thanks for such a quick response that's fantastic.

Sorry for not mentioning in the original post that it is the H5P plugin for WordPress version.

Kind regards,

Dave.

 

BV52's picture

Hi Dave,

What Papi Jo meant is the version number of the H5P plugin and Wordpress. I.e. the latest version of WP AFAIK is 6.8.2.

-BV

Hi BV,

Thanks for this message - it was a silly mistake for me to make!

The version of WP is 6.2.8, which is the latest version AFAIK.

Many thanks,

Dave.

 

papi Jo's picture

Please confirm that you are running the latest version of WordPress : 6.8.2 and the latest version of the H5P plugin for WordPress : 1.16.0.

 

Hi guys,

I've just had a chance to go into my WP dashboard and I can confirm the version of WordPress is 6.8.2 and the version of the H5P plugin is 1.16.0.

many thanks,

Dave.

otacke's picture

Hi!

A deprecation warning is nothing that breaks anything. The constant in question was declared deprecated in PHP 8.1 and it may be removed in future versions. That message merely tells developers that they should use a different implementation, but the constant still works. Normally, on a production site, you'd not even see it unless you (for whatever reason) set the PHP error reporting level to include those messages that are addressing developers.

An HTTP response code of 500 does not tell you more than something went wrong on your server without any way to specify exactly what. You'd need to check your server's PHP error log for more information (beyond depracation warnings).

Best,

Oliver