Support » Plugin: Smush - Lazy Load Images, Optimize & Compress Images » Deprecated FILTER_SANITIZE_STRING

  • Hi

    I’ve already fond another post mentioned this problem, it was a few months ago and you answered that this issue is fixed in a version that was also published a few months ago. Sadly, the problem is not fixed, the deprecated code is still in the files as of version 3.12.5.

    I hope you guys can fix this asap in a future version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Luis – WPMU DEV Support

    (@wpmudev-support7)

    Hi @faktorvier

    Sorry for the inconvenience.

    Unfortunately I was not able to reproduce the error on our lab sites with version 3.12.5, could you help us with some additional information to make sure our team performs a further check on this? The info would be the following:

    • The complete entry where this error/warning is showing.
    • The current WordPress and PHP versions.
    • The results you get with a conflict test (create a backup, deactivate all plugins except Smush and switch to a basic theme like Twenty Twenty Two.

    Thanks in advance for your collaboration on this matter.

    Kind regards

    Luis

    Thread Starter FAKTOR VIER

    (@faktorvier)

    Hi @wpmudev-support7

    • In the backend on any page
    • We use PHP 8.1

    The part that you can’t reproduce does not make any sense, because the deprecated code is in your plugin. Just look into the plugin version 3.12.5 and search for FILTER_SANITIZE_STRING. You’ll find a few lines that use this constant. This constant is deprecated since 8.1 (see https://www.php.net/manual/en/filter.filters.sanitize.php). If you look into youre code and check the lines that those constants are used, you maybe can reproduce the problem better.

    All in all, even though this problem may be random and not on every installation, you should not use this constant, since its deprecated.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @faktorvier

    I hope you are doing well.

    Thank you for the report, I checked the plugin source and found it still uses that filter on a specific file.

    We are going to report to our developers and implement a fix to it.

    Best Regards
    Patrick Freitas

    Thread Starter FAKTOR VIER

    (@faktorvier)

    Hi @wpmudevsupport12

    Sounds good. Thanks for the quick update.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.