• Hi, I checked my debug.log file and discovered it is flooded by tons of logs regarding translatepress. The logs are ones like the following:

    [05-Dec-2022 08:47:03 UTC] PHP Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/mydomain.com/wp-content/plugins/translatepress-multilingual/includes/class-url-converter.php on line 494

    My PHP version is 8.1.13.
    My WP version is 6.1.1

    From the total of the last 100 lines in the debug.log (tail -n 100 debug.log) all 100 logs have to do with translatepress.

    Would you kindly advise or address?

Viewing 1 replies (of 1 total)
  • Dragos

    (@dragosvrejiu)

    Hello,

    Thank you for reacing out to us!

    This is due to the PHP version. You are using a new version of PHP and a function’s usage from TranslatePress’ code is deprecated.

    Everything should work as expected for now, but it might be a problem in future version of PHP, if the notice remains unattended to.

    However, our developers are aware of it and will resolve it.

    Best regards

Viewing 1 replies (of 1 total)
  • The topic ‘Tons of PHP Deprecated str_replace() errors in debug.log’ is closed to new replies.