Having the same problem on a site running Modx 2.2.5 (just can't upgrade it at the moment using the UpgradeMODX extra). It's running on php 5.4. I've upgraded Formit to latest version, installed RecaptchaV2 and inserted the site keys in the recaptchav2 settings, but it is failing to render. This is my Formit call:
[[!FormIt?
&spamEmailFields=`email,subject`
&hooks=`recaptchav2,spam,email`
&emailTpl=`ContactResponse`
&emailTo=`
[email protected]`
&validate=`message:stripTags`
&successMessage=`<div class="alert alert-success">
<h3>Your message has been submitted successfully.</h3>
</div>`
]]
[[!+fi.successMessage]]
And the recaptchav2 render:
[[!recaptchav2_render]]
[[!+fi.error.recaptchav2_error]]
It was working perfectly when using version 1 of recaptcha