Skip to main content
Topic: Constant FILTER_SANITIZE_STRING is deprecated in (Read 2950 times) previous topic - next topic

Constant FILTER_SANITIZE_STRING is deprecated in

Hi,
I need assistance here.
I have PHP 8.2.4 in my Xampp. I'm using an existing database that is located in SQL Server. I'm trying to preview the page by clicking the Preview button, but it gives Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in C:\xampp\htdocs\assetregistry\system\BaseController.php on line 232. I know that it is not advisable to edit BaseController.php.

What should I do?

 

Re: Constant FILTER_SANITIZE_STRING is deprecated in

Reply #1
Switch to PHP 7.4 or you can ignore it for now, for PHP 8.2.4. Because when you publish to production, the warnings will not be displayed.