• Below warnings are appearing after the WordPress update.

    Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/test/public_html/wp-includes/formatting.php on line 5395
    $string = preg_replace( ‘@<(script|style)[^>]*?>.*?</\\1>@si’, ”, $string );

    Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/test/public_html/wp-includes/formatting.php on line 3473
    if ( strlen( $email ) < 6 ) {

    Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/test/public_html/wp-includes/pluggable.php on line 599
    $password = trim( $password );

    How to fix it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    What is your php version? If it’s 8.1 change it to either 8.0 or 7.4

    WordPress 6.0.3 works well with PHP 8.1, with all major Managed WordPress hosting providers (Kinsta, Flywheel, etc) supporting it out of the box.

    I’d rather track down whatever is causing this (theme or plugin) and deal with it, rather than downgrade my hosting infrastructure.

    It looks like a lot of platforms are getting this error on php 8.1. I noticed one person changed the code in smarty to {$params[0]} ?: ”) to prevent the error. When I searched on this error it seems to be a problem on other platforms like drupal as well. Do as @ivahyael suggested and try moving down a level in your PHP version.

    Thread Starter Yusup Ali

    (@fileour)

    Thnks all.

    Hi @mrtom414 and @ivahyael , Suppose I bring it below 8.1 now. But after a few days will get the solution?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem after update WordPress 6.0.3’ is closed to new replies.