• Resolved eSaner

    (@esaner)


    Ninja Forms is throwing a fatal error with php 8.3:

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

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

    (@shayleehansen30)

    Hey!

    Whoa, sounds like you’ve hit a bit of a code roadblock with Ninja Forms and PHP 8.3. That fatal error with the static variable $fields is definitely not the kind of surprise we like. ??

    Could you drop a line to our support team? Just head over to our contact page and let them know about this PHP issue.

    We’re here to make sure your experience with Ninja Forms is smooth sailing, not a coding rollercoaster.

    Can’t wait to help you sort this out and get things running error-free. Thanks for reaching out, and catch you on the flip side! ????

    Same…

    Ninja Forms Version: 3.7.0
    Fatal Error in PHP 8.3
    PHP Fatal error: Duplicate declaration of static variable $fields in /wp-content/plugins/ninja-forms/includes/Admin/CPT/Submission.php on line 245

    Also this on 8.3:
    [10-Dec-2023 03:13:22 UTC] PHP Fatal error: Duplicate declaration of static variable $fields in /var/www/htdocs/wp-content/plugins/ninja-forms/includes/Admin/CPT/Submission.php on line 245

    was it solved?

    Just delete duplicate ‘static variable $fields’, that is, remove line 245 and it should work just fine.

    I don’t think this issue has been resolved. I still get a similar/the same error.

    I’ve redacted the real URL from the log below, but when enabling PHP 8.3, I get a critical error with the following information:

    2024/02/02 16:34:13 [error] 118637#118637: *106377 FastCGI sent in stderr: “PHP message: PHP Fatal error: Duplicate declaration of static variable $fields in /www/schoolchristmascards_290/public/wp-content/plugins/ninja-forms/includes/Admin/CPT/Submission.php on line 245” while reading response header from upstream, client: 217.41.70.250, server: https://www.example.com, request: “GET /wp-admin/site-health.php?tab=debug HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.3-fpm-examplecom.sock:”, host: “www.example.com:56004”, referrer: “https://www.example.com/wp-admin/site-health.php”

    Kind regards,

    Simon

    I have same error on https://igre.games/kontaktiraj-me/

    i went back to php version 8.2

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘php 8.3 fatal error’ is closed to new replies.