Title: PHP Parse error: syntax error
Last modified: September 18, 2020

---

# PHP Parse error: syntax error

 *  Resolved [gjhdigital](https://wordpress.org/support/users/gjhdigital/)
 * (@gjhdigital)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/)
 * I just tried updating and now site is broken and the log says this:
 * [18-Sep-2020 17:47:57 UTC] PHP Parse error: syntax error, unexpected ‘::’ (T_PAAMAYIM_NEKUDOTAYIM)
   in /wp-content/plugins/ninja-forms/ninja-forms.php on line 354

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

 *  [Andisen D](https://wordpress.org/support/users/archteryx/)
 * (@archteryx)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13425549)
 * Aaargh.. autoupdates are annoying, defeinatel turn them off on prod sites. Can’t
   access ninja forms via menu on admin screen, desn’t exist. Form disappears off
   website.
 * Trying to export forms before I do anything on other websites, they do not appear
   in the dropdownlist to export.
 * Sites also lose their secure status .. still https:// but lock for security on
   chrome/edge etc not present.
    -  This reply was modified 5 years, 8 months ago by [Andisen D](https://wordpress.org/support/users/archteryx/).
 *  [Jim Dalrymple](https://wordpress.org/support/users/olpknights/)
 * (@olpknights)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13425767)
 * I’m experiencing the same issue. Please post if you find a resolution. Thanks.
 *  Thread Starter [gjhdigital](https://wordpress.org/support/users/gjhdigital/)
 * (@gjhdigital)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13425802)
 * I renamed the folder in the plugins folder for now and using C7 plugin temporarily(
   hopefully)
 *  [mikruzo](https://wordpress.org/support/users/mikruzo/)
 * (@mikruzo)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13426036)
 * Delete/rename the plugin directory for Ninja Forms. That should let it run without
   the plugin. If that doesn’t work, keep renaming plugin folders until it does.
 * login and it should deactivate the plugin if not do it yourself. Once it’s deactivated
   you should see everything come back.
 *  Thread Starter [gjhdigital](https://wordpress.org/support/users/gjhdigital/)
 * (@gjhdigital)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13426068)
 * [@mikruzo](https://wordpress.org/support/users/mikruzo/) thats what I did already,
   but still cant use Ninja Forms until they fix this bug.
 *  [Intriguing](https://wordpress.org/support/users/intriguingmedia/)
 * (@intriguingmedia)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13426368)
 * We were having the same issue on a site. Strange thing is that we don’t have 
   auto-update set and today the site just went down and that version was installed.
 * For a temporary solution, we’re able to pull an older version of the plugin and
   replace it until Ninja Forms rolls out an update. We also sent them a support
   request.
 * [https://downloads.wordpress.org/plugin/ninja-forms.3.4.29.zip](https://downloads.wordpress.org/plugin/ninja-forms.3.4.29.zip)
   is the current version that’s causing issues for us.
 * Just work backwards untill you get a version that works on your site.
 * [https://downloads.wordpress.org/plugin/ninja-forms.3.4.28.zip](https://downloads.wordpress.org/plugin/ninja-forms.3.4.28.zip)
   
   [https://downloads.wordpress.org/plugin/ninja-forms.3.4.27.zip](https://downloads.wordpress.org/plugin/ninja-forms.3.4.27.zip)
   [https://downloads.wordpress.org/plugin/ninja-forms.3.4.25.zip](https://downloads.wordpress.org/plugin/ninja-forms.3.4.25.zip)
   [https://downloads.wordpress.org/plugin/ninja-forms.3.4.24.zip](https://downloads.wordpress.org/plugin/ninja-forms.3.4.24.zip)
   [https://downloads.wordpress.org/plugin/ninja-forms.3.4.23.zip](https://downloads.wordpress.org/plugin/ninja-forms.3.4.23.zip)
   [https://downloads.wordpress.org/plugin/ninja-forms.3.4.22.zip](https://downloads.wordpress.org/plugin/ninja-forms.3.4.22.zip)
   [https://downloads.wordpress.org/plugin/ninja-forms.3.4.21.zip](https://downloads.wordpress.org/plugin/ninja-forms.3.4.21.zip)
   [https://downloads.wordpress.org/plugin/ninja-forms.3.4.20.zip](https://downloads.wordpress.org/plugin/ninja-forms.3.4.20.zip)
 * Hope that helps!
    -  This reply was modified 5 years, 8 months ago by [Intriguing](https://wordpress.org/support/users/intriguingmedia/).
 *  [dotcompals](https://wordpress.org/support/users/dotcompals/)
 * (@dotcompals)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13426716)
 * Hi, as several of ninja form users, i am also experiencing this error.
 * Parse error: syntax error, unexpected ‘::’ (T_PAAMAYIM_NEKUDOTAYIM) in /wp-content/
   plugins/ninja-forms/ninja-forms.php on line 354
 * Hope there will be a fix soon.
 * [Email SS](https://cln.sh/sXobRC)
 *  [pro_wp](https://wordpress.org/support/users/pro_wp/)
 * (@pro_wp)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13428250)
 * If you want to fix it temporarily, change line 354 from
 * require_once Ninja_Forms()::$dir . ‘blocks/ninja-forms-blocks.php’;
 * to
 * require_once Ninja_Forms::$dir . ‘blocks/ninja-forms-blocks.php’;
 *  Plugin Contributor [Justin McElhaney](https://wordpress.org/support/users/jmcelhaney/)
 * (@jmcelhaney)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13649121)
 * [@pro_wp](https://wordpress.org/support/users/pro_wp/) [@dotcompals](https://wordpress.org/support/users/dotcompals/)
   [@intriguingmedia](https://wordpress.org/support/users/intriguingmedia/) [@gjhdigital](https://wordpress.org/support/users/gjhdigital/)
   [@mikruzo](https://wordpress.org/support/users/mikruzo/)
    Can you make sure that
   you are updated to the latest version of Ninja Forms, 3.4.30 and see if you are
   still having the same issue? If you are still having issues, the quickest way
   to get support is through our official Ninja Forms support form. [http://ninjaforms.com/contact](http://ninjaforms.com/contact)

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

The topic ‘PHP Parse error: syntax error’ is closed to new replies.

 * ![](https://ps.w.org/ninja-forms/assets/icon-256x256.png?rev=1649747)
 * [Ninja Forms - The Contact Form Builder That Grows With You](https://wordpress.org/plugins/ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-forms/reviews/)

## Tags

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

 * 9 replies
 * 8 participants
 * Last reply from: [Justin McElhaney](https://wordpress.org/support/users/jmcelhaney/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-6/#post-13649121)
 * Status: resolved