• Yesterday my site would not open. I contacted the service provider and the found a problem with Ninja Forms and deactivated the plugin. When I tried to activate it I got this message

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘ in /home/ashfiel1/public_html/wp-content/plugins/ninja-forms/includes/Handlers/FieldsetRepeater.php on line 173

    Wordpress automatically generated the following error notice:

    An error of type E_PARSE was caused in line 173 of the file /home/ashfiel1/public_html/wp-content/plugins/ninja-forms/includes/Handlers/FieldsetRepeater.php. Error message: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘

    I am using Windows 10
    WordPress version 5.7.2
    Current theme: Twenty Sixteen (version 2.4) Current plugin: Ninja Forms (version 3.5.6) PHP version 5.6.40

    I am not really competent at coding… has anyone got any idea of what has happened?
    Regards
    Colin

    • This topic was modified 3 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your PHP version stands out to me as a red flag. So I set up a test environment.

    With a clean WordPress install and PHP version similar to yours (v5.6.39), I got the exact same error when trying to activate Ninja Forms. I changed my test environment’s PHP version to 7.4.1 and tried again and had no issue.

    I recommend contacting your hosting and trying to get PHP upgraded. This can break some sites depending on their age/plugins/themes. It’s still recommended, it’s just something to do carefully. Here’s an article that you should read thoroughly before going ahead with it.

    [ link deleted ]

    • This reply was modified 3 years, 4 months ago by Jan Dembowski.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side note @rickymccallum87 I am removing that link because that company is a scammy, worthless, banned for life, company.

    Please to not share links to that site. They use these forums to abuse people seeking support.

    @ashfieldhistory Here’s an article that covers the same subject. Just know that it’s important to back up your site completely so you can restore it if something goes wrong with the PHP upgrade.

    Get a faster, more secure website: update PHP today

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cant Activate Ninja Forms: Fatal Error’ is closed to new replies.