• Hi there,
    there is a PHP deprecated message that is spamming my logfile since a long time. Could you please have a look on how to fix this. The message is:

    PHP Deprecated: ?str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in [ROOT_PATH_HERE]/wp-content/plugins/fast-velocity-minify/inc/frontend.php on line 1075

    In the mentioned line I found this code:

    add fvm_footer scripts, if enabled
    if(fvm_can_minify_js()) {
    $fm = fvm_add_footer_function($fm);
    }
    $hm = str_replace(array(”, ”), ”, $hm);
    $hm_late = str_replace(array(”, ”), ”, $hm_late);
    $fm = str_replace(”, ”, $fm);
    // this is line 1075

    The function fvm_add_footer_function (defined in line 2193 in \wp-content\plugins\fast-velocity-minify\inc\common.php) returns nothing (void), so I am pretty sure this is the cause of the deprecated message.

    Best regards,
    Henning

  • You must be logged in to reply to this topic.