• Resolved nutttaro

    (@nutttaro)


    Hello there,

    I got an error on PHP 8.1, please see the error message blow.

    [09-Mar-2023 03:02:42 UTC] PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-content/plugins/better-wp-security/core/core.php on line 1102
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Shalom Taiwo

    (@shalomt)

    Hi there,
    Thank you for reaching out. ITSec is still in preliminary support for 8.1, so there may still be some warnings and deprecation notices, but it should not halt the plugin’s functionality.
    Rest assured, we are aware of these PHP warnings, and we’re working on this. Thank you for your patience, and I’ll go ahead and mark this post resolved.

    if (is_string($home_path) && $home_path !== null) { 
       $home_path = trim($home_path, '/'); 
    }

    Is there any ETA on when this issue will be resolved?

    David Navia

    (@davidnaviaweb)

    Hi you all!

    Still no fix for this? I know is a minor thing, and that is what surprises me the most. More than seven months to fix this? I suggest to change line 1102 for:

    $home_path = trim( $home_path ?? '', '/' );

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error for PHP 8.1’ is closed to new replies.