-
- 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
-
- 24,544 Posts
Are there any reCaptcha-related tags in your page or any Tpl chunks? They should be removed.
-
- 275 Posts
Nope, none...
I’m baffled
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
-
- 24,544 Posts
Did you clear the site cache and your browser cache/cookies?
-
- 275 Posts
Yes, cleared cache from manager menu and cleared browser data.
To no avail....
MODx Revolution / MAMP / OS X
-
- 24,544 Posts
This probably won’t work, but try deleting all the files in the core/cache/ directory, except index.php.
-
- 275 Posts
There’s no index.php... there is an index.html...
MODx Revolution / MAMP / OS X
-
- 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
-
- 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