We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27519
    • 275 Posts
    I have a form with the following Formit call in it:

    [[!FormIt?
    &hooks=`spam,email,redirect`
    &emailTpl=`EmailBooking`
    &emailTo=`[email protected]`
    &emailSubject=`bla bla bla`
    &redirectTo=`1`
    &smtpEnabled=`1`
    &smtpAuth=`1`
    &smtpHost=`smtp.gmail.com`
    &smtpUsername=`[email protected]`
    &smtpPassword=`mypassword`
    &smtpPort=`465`
    &smtpPrefix=`tls`
    ]]

    I have removed the recaptcha hook from the above call and now the page with the form will not load anymore.

    When I remove the Formit call, the page with form displays correctly....
      MODx Revolution / MAMP / OS X
      • 3749
      • 24,544 Posts
      Are there any reCaptcha-related tags in your page or any Tpl chunks? They should be removed.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 27519
        • 275 Posts
        Nope, none...

        I’m baffled huh

        I noticed though that with the recaptcha, the error "recaptcha wasn’t entered correctly" appears immediately upon the first display of the form, e.g. without a prior submit of the form....
          MODx Revolution / MAMP / OS X
          • 3749
          • 24,544 Posts
          Did you clear the site cache and your browser cache/cookies?
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 27519
            • 275 Posts
            Yes, cleared cache from manager menu and cleared browser data.

            To no avail....
              MODx Revolution / MAMP / OS X
              • 3749
              • 24,544 Posts
              This probably won’t work, but try deleting all the files in the core/cache/ directory, except index.php.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 27519
                • 275 Posts
                There’s no index.php... there is an index.html...
                  MODx Revolution / MAMP / OS X
                  • 27519
                  • 275 Posts
                  Cleared the core/cache directory but no change....

                  Funny thing: I reinstated the recaptcha and no matter what it rejects my answers even though I’m 99.999% sure I entered the correct words.

                  I also tried to reinstall the package but that did not help either.

                  What’s left to try?????
                    MODx Revolution / MAMP / OS X
                    • 1778
                    • 659 Posts
                    Hello

                    I have a form with the following Formit call in it:
                    // Formit call

                    First I assume that your Formit call is not in the form but before it...

                    I guess you should remove the SMTP parameters :

                    &smtpEnabled=`1`
                    &smtpAuth=`1`
                    &smtpHost=`smtp.gmail.com`
                    &smtpUsername=`[email protected]`
                    &smtpPassword=`mypassword`
                    &smtpPort=`465`
                    &smtpPrefix=`tls`

                    These settings are hold by the System Settings, and do not have to be added as parameters (read somewhere on the forum, or on github, or in the doc, not sure where but pretty sure I read it)... Maybe the doc on rtfm is not up to date on this point...

                    Not sure it will solve your issue but it can be a way to explore...
                    Cheers
                      • 27519
                      • 275 Posts
                      Hi,

                      Yes, the Formit call is before anything else.

                      The SMTP stuff I copied from an example somewhere.

                      Removing it did not solve the problem...

                      Thanks for the suggestion though.
                        MODx Revolution / MAMP / OS X