Hello @3xploiton3
Thank you for reaching out!
We are checking this and I’ll get back to you once we have confimation and more info about this!
Thank you for taking the time to report this!
Hello @3xploiton3
Thank you for your patience.
Can you please try and change that line to:
if ( ! empty( $this->userAgent ) ) {
$this->userAgent = str_replace( self::GZIP_UA, '', $this->userAgent );
}
Let me know if this helps!
Thanks!
can you update in next release?
i dont know exactly what thats mean on above
Hello @3xploiton3
The deprecated message shows the file and the line that is problematic.
The conde I shared is the solution so we wre hoping you can testi this and get back to us by replacing the existing line with the one provided.
Thanks!
Hello, please fix it, thank you
PHP 8.2., WordPress 6.6.1, plugin Version 2.7.5
PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php on line 1094