We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40833
    • 52 Posts
    This is a warning to those using the RecaptchaV2 Extra to add Recaptcha Version 2 to FormIt. The underlying class uses the 'file_get_contents' PHP function to retrieve the Recaptcha results from the Google server. You MUST have php.ini 'allow_url_fopen' set to 'On' or '1' for this feature to work.

    This took me a good hour and a half to back-trace. It would probably be better if the class were updated to use CURL instead to avoid this particularly unpleasant situation (since there are no errors involved, it just fails silently). [ed. note: dan971 last edited this post 11 years, 2 months ago.]
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      I found this to be particularly pleasant to implement.
      https://github.com/bvandorp/noCaptcha
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 26681 MODX Staff
        • 123 Posts
        Quote from: dan971 at Jul 31, 2015, 03:16 PM
        This is a warning to those using the RecaptchaV2 Extra to add Recaptcha Version 2 to FormIt. The underlying class uses the 'file_get_contents' PHP function to retrieve the Recaptcha results from the Google server. You MUST have php.ini 'allow_url_fopen' set to 'On' or '1' for this feature to work.

        This took me a good hour and a half to back-trace. It would probably be better if the class were updated to use CURL instead to avoid this particularly unpleasant situation (since there are no errors involved, it just fails silently).

        About 2 months ago (a month after you posted this) the [Google Recaptcha](https://github.com/google/recaptcha) library was updated to use cURL, so I'll be getting that into the next version of RecaptchaV2.

        Thanks,
          [sepiariver.com] (https://sepiariver.com/)
          • 26681 MODX Staff
          • 123 Posts
          RecaptchaV2 for MODX has been updated to include the latest Google Recaptcha class version 1.1.2, which uses cURL rather than file_get_contents(), and supports a variety of request methods.

          Hope this improves your experience with RecaptchaV2 smiley
            [sepiariver.com] (https://sepiariver.com/)
            • 48586
            • 78 Posts
            I just want to add my 2 cents, Sepia River is fantastic, and RecaptchaV2 works great
              • 26681 MODX Staff
              • 123 Posts
              Thank you laugh
                [sepiariver.com] (https://sepiariver.com/)