Title: PHP Deprecation errors
Last modified: April 8, 2025

---

# PHP Deprecation errors

 *  Resolved [Becky](https://wordpress.org/support/users/artistnamedbec/)
 * (@artistnamedbec)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-deprecation-errors/)
 * All my plugins and wordpress are the latest and greatest. Noticed the other day
   that I am getting PHP deprecation errors in my wpforms-lite. I used the forms
   with elementor to create my contact page. Also, for some reason there are two
   email fields on my contact page that I did not put there. Any suggestions on 
   how to correct this would be most appreciated.
 * Below are the the error info. Thank you
 * Message: Creation of dynamic property FS_Site::$charset is deprecated
 * Location:
    1.  wp-includes/functions.php:650
    2.  `WPForms\ErrorHandler->fallback_error_handler()`
        wp-content/plugins/wpforms-
        lite/src/ErrorHandler.php:269
    3.  `WPForms\ErrorHandler->error_handler()`
        wp-content/plugins/wpforms-lite/src/
        ErrorHandler.php:269
    4.  `WPForms\ErrorHandler->fallback_error_handler()`
        wp-content/plugins/wpforms-
        lite/src/ErrorHandler.php:269
    5.  `WPForms\ErrorHandler->error_handler()`
        wp-content/plugins/wpforms-lite/src/
        ErrorHandler.php:269
    6.  `unserialize()`
        wp-includes/functions.php:650
    7.  `maybe_unserialize()`
        wp-includes/option.php:247
    8.  `get_option()`
        wp-content/plugins/ocean-extra/includes/freemius/includes/managers/
        class-fs-option-manager.php:173
    9.  `FS_Option_Manager->load()`
        wp-content/plugins/ocean-extra/includes/freemius/
        includes/managers/class-fs-option-manager.php:98
    10. `FS_Option_Manager->__construct()`
        wp-content/plugins/ocean-extra/includes/
        freemius/includes/managers/class-fs-option-manager.php:134
    11. `FS_Option_Manager::get_manager()`
        wp-content/plugins/ocean-extra/includes/
        freemius/includes/class-fs-options.php:90
    12. `FS_Options->__construct()`
        wp-content/plugins/ocean-extra/includes/freemius/
        includes/class-fs-options.php:68
    13. `FS_Options::instance()`
        wp-content/plugins/ocean-extra/includes/freemius/includes/
        class-freemius.php:3431
    14. `Freemius::_load_required_static()`
        wp-content/plugins/ocean-extra/includes/
        freemius/includes/class-freemius.php:2849
    15. `Freemius::instance()`
        wp-content/plugins/ocean-extra/includes/freemius/start.
        php:615
    16. `fs_dynamic_init()`
        wp-content/themes/oceanwp/functions.php:1164
    17. `owp_fs()`
        wp-content/themes/oceanwp/functions.php:1192
 * Count: 5
 * Plugin: wpforms-liteTotal: 5 / 5
    -  This topic was modified 1 year, 2 months ago by [Becky](https://wordpress.org/support/users/artistnamedbec/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-deprecation-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-deprecation-errors/#post-18408403)
 * Hi [@artistnamedbec](https://wordpress.org/support/users/artistnamedbec/),
 * Thanks for reaching out!
 * You mentioned that all your plugins and WordPress are up-to-date. That’s great!
 * However, the errors you’re seeing seem to be originating from the Ocean Extra
   plugin (`wp-content/plugins/ocean-extra/`) and the OceanWP theme (`wp-content/
   themes/oceanwp/`). It appears WPForms’ error handler is catching these errors,
   even though they’re not directly related to WPForms itself.
 * I recommend contacting the support team for the OceanWP theme and the Ocean Extra
   plugin. They’re the best resource for resolving errors within their own code.
   Providing them with the specific error messages you’re seeing will help them 
   diagnose and fix the problem.
 * If you’d like to temporarily disable WPForms’ error handler (which is catching
   and reporting these external errors), you can add the following constant to your`
   wp-config.php` file:
 *     ```wp-block-code
       define( 'WPFORMS_DISABLE_ERROR_HANDLER', true );
       ```
   
 * This will prevent WPForms from reporting the deprecation errors. Here’s a [helpful guide from WPBeginner](https://www.wpbeginner.com/beginners-guide/how-to-edit-wp-config-php-file-in-wordpress/)
   on how to edit your `wp-config.php` file.
 * If you have any additional questions, please feel welcome to let me know.
 * Thanks!
 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-deprecation-errors/#post-18412334)
 * Hi [@artistnamedbec](https://wordpress.org/support/users/artistnamedbec/),
 * We haven’t heard back from you in a few days, so I’m going to go ahead and close
   this thread for now. But if you’d like us to assist further, please feel welcome
   to continue the conversation.
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Deprecation errors’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/php-deprecation-errors/#post-18412334)
 * Status: resolved