Required Fields
-
I’m using the latest WordPress version coupled with the latest cFormsII plugin. I am testing a Reservations form I have been using for 6-7 years, but suddenly today, after reactivating the Reservations Page on my Crystalskishop.com site, the test submission process just evaluates the form and posts “Please fill out all required fields” and I can guarantee All Required fields have been filled out.
Also, where can I view the logs to help determine what field it “thinks” is not being filled out. Please help!
-
The log place depends on whether you are using AJAX forms or not. In both cases it is the standard PHP log, which depends on your configuration. Check out https://codex.wordpress.org/Debugging_in_WordPress. For AJAX forms there may be warnings/errors showing up in your browser’s console.
Is it an automated or manual process?
Automated or manual process for what?
CFormsII is a form plugin for WordPress sites (you know that) and when I fill out the form while testing and press submit, it thinks for a few seconds and then returns with “Please fill out all required fields.” and I know 100% the “required” fields are filled in.
I’m reading the debug.log file that PHP debugging writes to inside the wp-content folder of WordPress. I’m seeing this pattern for every fieldset in my form:
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: Reservation-Primary-Contact-Person in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: Primary-Contact in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: Name-(First-and-Last) in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: Email in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: Address in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: City in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: State in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: ZIP in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: Phone in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: Local-Lodging-and-Special-Requests-or-Comments in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: Pickup-Date-(48-hours-in-advance-minimum) in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557
[21-Dec-2016 02:45:49] PHP Notice: Undefined index: Return-Date in /var/www/vhosts/74/239802/webspace/httpdocs/crystalskishop.com/wp-content/plugins/cforms2/cforms.php on line 557Why is this? This form, as is, used to work just fine. Was there some CFormsII change recently that I missed what to do to conform to the new format?
-
This reply was modified 9 years, 3 months ago by
gregglowrimore.
You wrote about a “test submission process”, which you now identified as manual with “when I fill out the form while testing and press submit”. This could also be done by a program, which would then be a automated test submission process.
When I look at your form page there is a section in the HTML head that is introduced by the comment “Start Of Script Generated By cforms v13.1 [Oliver Seidel | http://www.deliciousdays.com]”.
This was generated by the old cformsII which my version was forked from. Why is this generated on your page, whereas you seem to have a current version of my fork installed?Then there is a link “cforms contact form by delicious:days” in the form’s bottom area, which also should not be there anymore.
Also the CAPTCHA is not in a functional state, which also seems to originate from the old version being implemented in some manual way.
I suggest you fix your setup and then check again, if the fields are checked correctly.
OK, suggestions taken. I’ve removed the cforms2 plugin and re-installed completely. I also took the upgrade route thinking that there might be old data in the DB tables, so I installed the 14.6.0.5 release, saved all my settings and my reservation form. deactivated it and installed the latest release for CForms2 and re-saved my settings and reservation form.
I still get “Please fill out all required fields.” every time I manually submit a reservation form.
How are you able to view the form’s source? Are you hitting the crystalskishop.com/reservations page? I’d like to see if I still have the “Oliver Seidel” references as well as cForms 13.1 references as I couldn’t have cleaned the plugins folder out any more than I did – basically installing CForms2 from scratch.
Should I send you via email, my reservation form? Or what?
I also cleaned out my cforms-custom folder that sits beside my wp-content/plugins/cforms2 folder. (One thing I’ve noticed too, my reservation form is sitting in this cforms-custom folder and I’ve saved changes to it, but the date/timestamp on this formconfig.txt file remains “Dec 29, 2011” — where is the physical file saved/stored? Inside mysql database? Or ???
Yes, I had a look at crystalskishop.com/reservations. But now I get a 404 error loading it.
formconfig.txt is just a backup file of your form. The real form is stored in your database. Is there something more in cforms-custom directoy? If there is a php file, this could be the reason for the modification.
To view HTML code, just use your browser’s code view. In Chrome and Firefox the shortcut is Ctrl+U.
Is there a way to surgically insert this backup file into the DB?
You can import it via the backup feature that you used to export it.
Thanks, but that doesn’t seem to be working now. I’ve tried importing over and over and nothing seems to “stick”
I had a closer look at the file and figured out it is in a really old backup format (version 8.7 or older). I installed 8.7 and imported it and updated to 14.6.0.5, which asked for upgrading the forms, and then updated to 14.12.1. I am experiencing the issue you explained, too.
As you are such a faithful cformsII user and it is Christmas, I will investigate this issue and will provide you with something you can import and maybe a new version if this is not an issue introduced by so many conversions.
Okay, the bug has to do with activating “Use custom input field NAMES & ID’s”, but you do not actually use this, so deativating it works just fine.
I sent you the form with instruction to your reserve@… email address.
Awesome! Great news.
Can I trouble you to forward the form to gregg at lowrimore dot com too?
Merry Christmas and Happy New Year! Keep up the excellent work here too!!
You can. I just sent it. Merry Christmas.
-
This reply was modified 9 years, 3 months ago by
The topic ‘Required Fields’ is closed to new replies.