• Resolved Mikhail Alferov

    (@malferov)


    PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in plugins/updraftplus/backup.php on line 2866

    The function encrypt_file() define the variable:

    $updraftplus->get_job_option('updraft_encryptionphrase');

    In the get_job_option() calls UpdraftPlus_Options::get_updraft_option($opt), which could return null. But NULL is deprecated as #1 parameter for the strlen() function.

    As i assume, you should not pass NULL to the strlen() function in backup.php:2866 file in option not exists.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP 8.2 Deprecated null for strlen()’ is closed to new replies.