PHP Parse error: syntax error
-
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
-
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, 6 months ago by
Andisen D.
I’m experiencing the same issue. Please post if you find a resolution. Thanks.
I renamed the folder in the plugins folder for now and using C7 plugin temporarily (hopefully)
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.
@mikruzo thats what I did already, but still cant use Ninja Forms until they fix this bug.
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 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.27.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.23.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.20.zipHope that helps!
-
This reply was modified 5 years, 6 months ago by
Intriguing.
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.
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’;
@pro_wp @dotcompals @intriguingmedia @gjhdigital @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 -
This reply was modified 5 years, 6 months ago by
The topic ‘PHP Parse error: syntax error’ is closed to new replies.