• Resolved h0stprocess

    (@h0stprocess)


    Hello, the plugin is broken with PHP 8.4

    ‘PHP message: PHP Fatal error: Duplicate declaration of static variable $fields in /var/www/vhosts/XXXXXX/httpdocs/wp-content/plugins/ninja-forms/includes/Admin/CPT/Submission.php on line 245’

    I resolved it by moving the static variable to line 210.

    Could you please solve it so with the next update it doesn’t get replaced?

    Thanks in advance and thanks for your awesome plugin!

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

    (@shayleehansen30)

    Hello,

    We have a pre-release available for this error. To get access, please contact our Customer Success team here here.

    Glad to hear you love the plugin ??

    • This reply was modified 1 year, 3 months ago by Shaylee.

    @shaylee could you advise when this is likely to be out of pre-release please? We have the same issue with 8.3

    I get the following error when activating Version 3.7.0 on PHP 8.3:

    Fatal error: Duplicate declaration of static variable $fields in …/wp-content/plugins/ninja-forms/includes/Admin/CPT/Submission.php on line 245

    I downgraded to PHP?8.2 and it works fine now.

    • This reply was modified 1 year, 2 months ago by Vincenzo.

    @vincenzost Just delete line 245 in …/wp-content/plugins/ninja-forms/includes/Admin/CPT/Submission.php and it will work fine with PHP 8.3/8.3.1

    Thanks, but I will wait for the official fix to upgrade again to PHP?8.3

    I have the same issue with PHP 8.3.2.

    Getting the same error when I try to upgrade my site to PHP 8.3.2. When is a fix coming out?

    Likewise, on all my sites with PHP 8.3. This is preventing me from updating PHP.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error with PHP 8.4’ is closed to new replies.