View Full Version : Captcha/Security validation failures
register313951
08-25-2009, 11:39 PM
Hi, Just got Form Builder and really like bringing all of the validation and form functions "under one roof". Thanks, saves some decent time.
I've tried creating several forms with both text field validations and security validations. The text validations work correctly (i.e. email format errors are caught, etc.)
However, both the captcha and security questions fail. They display the validation error messages when left empty but upon filling in the boxes, I can put anything in and the form processes, sending out an e-mail via Universal Mail.
I have not changed the Action (contactus.php) and the form is set to the default Post.
One annoyance has been that when I delete the security features via the Form Builder interface, it apparently leaves parts of the php code in the page. DW/WA "discovers" the orphan code and asks if I want to delete it. If I say yes, it doesn't appear to actually delete, instead code is removed that prevents me from re-entering Form Builder forcing a complete form rebuild. (Very fast with a saved custom preset - but still...)
Just looking for some insights.
Thanks!
Mark
Ray Borduin
08-26-2009, 07:29 AM
It sounds like server validation isn't getting applied properly. Everything else is caught with the spry validation, but the captcha and security question are only handled with server validation.
Did you upload the action page? Maybe the ServerValidation server behavior wasn't applied to the action page, maybe it wasn't uploaded, maybe the trigger is wrong, maybe the validations are wrong somehow. It is not a problem I am familiar with.
The form builder isn't great as a form editor. Once you build a form I would suggest adding and removing security features using the standard DW page editing experience from there. You can "edit", but it will wipe out any customization you do when you re-apply, so it often isn't the best option.
register313951
08-26-2009, 08:55 AM
Hi Ray,
So, do I need to add a Server Validation beyond what is automatically created using the defaults in From Builder (FB)? (if so, I guess I'm unclear which one to add) There is validation code for the Captcha and Question generated by FB
Here is a link to a stock FB contact form with the security features. I've not altered a thing except changing it from a 2 column to a 1 column format via the FB interface: http://www.sawatchenergy.org/test/testcaptcha.php
This sample exhibits the "anything goes" entries for the security features.
Thanks!
Ray Borduin
08-26-2009, 09:29 AM
You shouldn't. Form Builder should apply it all for you.
Did you have validation toolkit installed previously? Did you completely uninstall it first and overwrite all the files during installation?
register313951
08-26-2009, 09:46 AM
Yes, I uninstalled VTK but I still have the VTK Recipes installed. I'm thinking that is a bad thing about now? :-/
So, I'm guessing an uninstall of VTKR and Form Builder and then a reinstall of FB is the prescription for this?
Ray Borduin
08-26-2009, 10:20 AM
That is my guess based on your description.
register313951
08-26-2009, 04:28 PM
Hi Ray,
Using Extension Manager, I've uninstalled anything with the word validation in it. ;-) I've also uninstalled FB. I've then reinstalled FB and built a fresh form build. The entire site has been re-uploaded to avoid any synchronization issues.
However, the security validations still aren't happening.
Should I post some code or can you peek into the file here?: http://www.sawatchenergy.org/test/testcaptcha.php
One last clue; while I've uninstalled ValToolkit, I still have it as a selectable server behavior in the server menu.
Thanks for your help!
Ray Borduin
08-28-2009, 06:41 AM
I have created an incident on our web site to look into this problem with you further. I am not familiar with what might be causing it, so this will allow one of our support engineers to help debug it with you directly.
register313951
08-28-2009, 07:03 AM
Thanks Ray. I'll continue the discussion with them and post back the solution.
Mark
Ray Borduin
08-31-2009, 07:25 AM
Thank you. Please let us know what it was when you find the solution.
register313951
09-11-2009, 08:51 AM
Solution:
Thanks for you help in solving this Ray. Via the tech support ticket and online troubleshooting, this was solved as code issue that appears to be confined to PPC. Specifically, inverting the order of the WAValToolkit_Bundle and WAValToolkit_Carbon Try/Catch function.
Mark
B. Ellis
09-17-2009, 05:35 PM
I am experiencing the same issue with a form, the captcha and question will pass with any input. Could you give some details on how to fix this issue?
Thanks
register313951
09-17-2009, 07:40 PM
Hi Ellis,
Obviously, your situation may be different than mine - because this may be Mac PPC specific on OS 10.5.8. However, here is what worked for me.
You can leave Dreamweaver running to test this.
Locate this file: WAFB_ServerVal.htm
The path should be YourUserName/Library/Aplication Support/Adobe/Dreamweaver CSx/en_US/Configuration/commands/WAFB_ServerVal.htm
In code view, invert lines 147 and 150 so they appear like this:
*****
return WAValToolkit_Bundle.getValidationScript(ServerMode l) ;
}
catch(e){
return WAValToolkit_Carbon.getValidationScript(ServerMode l) ;
*****
Create new PHP page and save.
Insert a CSS Form with Captcha content and test.
Hope this works for you!
Mark
B. Ellis
09-18-2009, 05:58 AM
Thank you Mark, that worked perfectly. Maybe this is something that needs to be changed in the next release ???
Bob
register313951
09-18-2009, 06:04 AM
Hi Bob,
Fantastic. Glad someone else was also able to get some usefulness from the pain! ;-)
Mark
Ray Borduin
09-18-2009, 07:11 AM
We will be updating this in the next free dot release.
ftg.peters379769
09-24-2009, 03:25 AM
I do have the problems. You can type just anything in the Captcha or Security question field: it isn't validated at all. I tried the solution of Mark but it didn't work.
IMHO I think this version of CSS Form Builder is full of bugs and javascript and other errors.
If it wasn't so buggy this could be a very usefull extension! I hope they release an update soon.
Ray Borduin
09-24-2009, 01:08 PM
Report any specific bugs and javascript errors and we will make sure to address them.
paputxi
09-25-2009, 10:55 AM
The fix (inverting Carbon and Bundle statements) did not work for me either. BTW, I'm using a PC running Vista in case that may be useful.
Ray, can you recommend a workaround? Thanks.
Ray Borduin
09-25-2009, 11:03 AM
I have created an incident for you. Please log into our web site and visit your support history to include contact information and someone will give you a call to investigate the cause of your problem.
Jimmy Wu
09-29-2009, 04:43 PM
The fix (inverting Carbon and Bundle statements) did not work for me either. BTW, I'm using a PC running Vista in case that may be useful.
Ray, can you recommend a workaround? Thanks.
This issue was resolved in a private ticket. The form action was not posting to the page where the server behavior is applied, so the server validation was not being run. The form action should post back to the page that has the server validation applied to for the captcha and security question to work correctly.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.