PHP 8.2 Deprecated null for strlen()

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer