PHP 8 deprecation warning in upPrev
-
Hi,
I’m seeing repeated PHP 8 deprecation warnings in upPrev:preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
The warning originates from:includes/iworks/upprev.php, methodprint_custom_style()
The issue appears to be that:$this->options->get_option( 'css' )
can returnnulland is then passed directly topreg_replace().
A possible fix would be to ensure that the value is a string before processing it, e.g.:$css = $this->options->get_option( 'css' );if ( $css === null ) {$css = '';}
Could you please check this for a future update?
Best regards
HansjörgThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.