• Resolved codemonkeynorth

    (@codemonkeynorth)


    Creation of dynamic property NF_Database_Models_Action::$timing is deprecated
    Creation of dynamic property NF_Database_Models_Action::$priority is deprecated

    I believe the following (or similar) need adding to the base class NF_Abstracts_Model class?

    protected $_timing;
    public $timing;
    protected $_priority;
    public $priority;

    it seems turning off E_DEPRECATED or E_USER_DEPRECATED on error_reporting doesn’t seem to help surpress these warnings if WP_DEBUG is true but seems like it would be a quick fix?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Shaylee

    (@shayleehansen30)

    Hello,

    I see you are encountering deprecated warnings related to dynamic properties in Ninja Forms. While disabling E_DEPRECATED or E_USER_DEPRECATED in error_reporting might suppress these warnings, it’s important to consider the long-term implications.

    Before making any code changes, I recommend checking the PHP version you are running. Older versions of Ninja Forms may not be fully compatible with the latest PHP versions, which can lead to deprecated warnings.

    If you’re running an older version of Ninja Forms, consider updating it to the latest version. Maintaining compatibility with the latest PHP versions is essential for security and performance, so it’s a good practice to keep Ninja Forms and PHP up to date.

    If that doesn’t resolve it I recommend reaching out to our Customer Success team. They will have an official fix or guidance on how to handle this situation properly.

    Thread Starter codemonkeynorth

    (@codemonkeynorth)

    as mentioned, disabling E_DEPRECATED or E_USER_DEPRECATED makes no difference anyway.. the error is still thrown (maybe something to do with symfony/debug)

    We are using latest Ninja Forms plugin and ultimately it’s the Ninja Forms code using deprecated functionality, so I’ll wait for an update that covers PHP 8.2 without warnings

    thanks

    have the same errors in lates plugin

    [04-Feb-2024 10:28:00 UTC] PHP Deprecated: Creation of dynamic property NF_Database_Models_Action::$timing is deprecated in /wp-content/plugins/ninja-forms/includes/Abstracts/Action.php on line 204
    [04-Feb-2024 10:28:00 UTC] PHP Deprecated: Creation of dynamic property NF_Database_Models_Action::$priority is deprecated in /wp-content/plugins/ninja-forms/includes/Abstracts/Action.php on line 205
    [04-Feb-2024 10:28:00 UTC] PHP Deprecated: Creation of dynamic property NF_Database_Models_Action::$timing is deprecated in /wp-content/plugins/ninja-forms/includes/Abstracts/Action.php on line 207
    [04-Feb-2024 10:28:00 UTC] PHP Deprecated: Creation of dynamic property NF_Database_Models_Action::$priority is deprecated in /wp-content/plugins/ninja-forms/includes/Abstracts/Action.php on line 208

    Can you fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘deprecated warnings on PHP 8.2’ is closed to new replies.