• Resolved christophe68

    (@christophe68)


    Hello

    I moved to PHP 8.2 with my WordPress and I got the following errors on the debug.log:

    [01-Feb-2024 09:48:44 UTC] PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 487
    [01-Feb-2024 09:48:44 UTC] PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 487
    [01-Feb-2024 09:48:44 UTC] PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 487
    [01-Feb-2024 09:48:44 UTC] PHP Deprecated: Creation of dynamic property CF7CF::$steps is deprecated in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 270

    Do I have to worry about it?

    By the way, thanks for the great work with the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Don’t worry about it. I will take care of the notices in a future update.

    Hi @jules-colle, any update on this?

    I encountered a similar error:

    Deprecated: Creation of dynamic property CF7CF::$steps is deprecated in /public_html/wp-content/plugins/cf7-conditional-fields/cf7cf.php on line 270

    The issue occurs on the following line:

    $this->steps = json_decode(stripslashes($posted_data['_wpcf7cf_steps']));

    For now, I’ve applied a temporary fix by placing #[AllowDynamicProperties] at the top of the cf7cf.php file to prevent the error from blocking form submissions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘deprecated with PHP8.2’ is closed to new replies.