dlcotajr
Forum Replies Created
-
Hi Kevin,
Thanks for checking in and sorry for the delayed response. (In addition to blowing up my web site on occasion I also run a small IT consulting company in the California Bay Area and I get a little crazy busy sometimes! :-))
Yes, this was the exact parse error (see the second post way up above) and, yes, my version of PHP (v5.3) did NOT like the shorthand array notation and, yes, at some point I need to upgrade my version of PHP running on the server. And the last “yes” here is that yes the 3.0.22 release did indeed modify the code such that the array notation now works with my 5.3 version of PHP so we are all good!
Thank you and EVERYONE on this thread!
Danny
Well, the erroneous code, that is, the square brackets ([ and ]), implied the passing of an array to the “ninja_forms_field_recaptcha_display” function. My guess is that “ninja-forms-display” is simply a variable and NOT an array.
Ricardo: That did the trick! Thank you!
Idealynx: I have a feeling that your approach may have worked as well but I went with Ricardo’s because I use to do a lot of PHP coding and Ricardo’s code “fix” seemed immediately correct and sure enough it was! ??
I am now also hosed with my WP site with the following parse/syntax error:
Parse error: syntax error, unexpected ‘[‘ in C:\Program Files (x86)\Ampps\www\redshiftconsultinginchiftconsultinginc.com\wp-content\plugins\ninja-forms\deprecated\includes\fields\recaptcha.php on line 57Obviously, I’m running AMPPS on Windows but less obvious is that I just updated to WP 4.7.1 (successfully) and right after I updated the Ninja Forms version to this latest one, then I started getting these errors on all pages OTHER THAN my home page – https://www.redshiftconsultinginc.com/
I would like to see if someone can tell me exactly what line of code to amend but barring that I guess I’ll just have to delete the new Ninja Forms plugin directory and revert to an old one.