Title: deprecated with PHP8.2
Last modified: February 1, 2024

---

# deprecated with PHP8.2

 *  Resolved [christophe68](https://wordpress.org/support/users/christophe68/)
 * (@christophe68)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/deprecated-with-php8-2/)
 * 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](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [2 years ago](https://wordpress.org/support/topic/deprecated-with-php8-2/#post-17746773)
 * Don’t worry about it. I will take care of the notices in a future update.
 *  [farazahmad759](https://wordpress.org/support/users/farazahmad759/)
 * (@farazahmad759)
 * [2 years ago](https://wordpress.org/support/topic/deprecated-with-php8-2/#post-17769001)
 * Hi [@jules-colle](https://wordpress.org/support/users/jules-colle/), any update
   on this?
 * I encountered a similar error:
 *     ```wp-block-code
       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:
 *     ```wp-block-code
       $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.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 3 participants
 * Last reply from: [farazahmad759](https://wordpress.org/support/users/farazahmad759/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/deprecated-with-php8-2/#post-17769001)
 * Status: resolved