-
- 86 Posts
Update: the form just started opening correctly and automagically. Problem not solved, but at least gone!
-
- 86 Posts
Second update: It's baaack! It just started back with the 'Disallowed HTTP Referer' error when opening the form.
Any ideas here? Maybe I need an exorcist. ;-)
-
- 24,544 Posts
I wrote that code in 2008! The code is somewhat embarrassing and painful to look at.
Are you by any chance typing or pasting the URL of the form when testing? Unless you get to the page via a link, there's no referer.
You should be able to bypass the error by putting this in the snippet tag:
&chkFormRefNotBlank=`0`
&chkFormRefNotSelf= `0`
&chkFormRefOwnServer=`0`
Most spammers know enough to spoof the referer anyway.
-
- 86 Posts
Hi Bob,
Wow, that's pretty old in web years. ;-)
I'll try those suggestions.
I'm trying SPForm out of exasperation with the Formit 'Contact Us' form which I installed early on in this project. It was working fine until it stopped working at some point (don't know exactly when), without any errors going to the MODX log. To troubleshoot the Formit issue, I tried removing the 'redirect' hook, which revealed this error in the '[[!+fi.validation_error_message]]' placeholder at the top of the form:
"A form validation error occurred. Please check the values you have entered."
The 'Contact Us' form values are in fact correct, and that validation error shouldn't be happening. I've even removed all "[[!FormIt? &validate..." parameters, and "[[!field? &req=`1`..." parameters.
Any ideas why the Formit validation is failing regardless of the fact that all validation is turned off, and even if it wasn't turned off, the form values are valid?
Karl
-
- 24,544 Posts
Did you manually delete the core/cache files after making the changes?
-
- 24,544 Posts
You're still getting the "Disallowed HTTP Referer" error?
That's really strange. That error is only generated in one part of the snippet and setting those properties should bypass it completely. I'm not sure what to suggest.
-
- 24,544 Posts
I'm glad you got it sorted.