Can you provide the exact error you’re seeing on occasion? It’ll help me track down where in the code base it’s being provided/triggered from and would tell me better what’s going on at that point.
The undefined index notice isn’t anything to worry about, and will be fixed in version 1.2.0 once we’ve finalized it and it’s ready for release.
“We had trouble processing your submission. Please review your entries and try again.”
But then it doesn’t show where the error is. If you input an improper email address it shows that the email was the issue. But with the issue I’m having, nothing shows or appears to be an issue.
Can you confirm you’re filling in all of the required fields?
The only time that error is set to occur, is if any required fields are not provided, or a nonce verification fails, which is internal stuff to help confirm requests aren’t malicious.
Also, if the form is live on a site that I could visit, I’d be interested in trying it out firsthand.
Yes I’m quite certain all of the fields were filled in properly. And sometimes it works with all that information filled in and sometimes it throws this error with the same information filled in.
The form is live on:
http://www.integritypropertyservice.com/findoutmore/
For the sake of consistency, can you provide the email you’re using to test this? I submitted twice and both times it gave me a green success message.
If you’re comfy enough editing php, I can provide the changes made to fix that undefined index notice for the time being until 1.2.0 is out.
I haven’t had the issue since I last posted. Have had issues even trying to recreate the error… So for now I will call this case closed. Hopefully the update will be released soon…
But yea I’m pretty comfortable with php. Whats the fix?
Thank you for your help.
In includes/class-process-form.php around line 447, you’ll see this blob of an if statement:
if (
isset( $value['orig']['required'] ) &&
$value['orig']['required'] &&
// Skip Address Line 2.
'line_2' !== $value['orig']['_ctct_map_select']
) {
Add this: isset( $value['orig']['_ctct_map_select'] ) &&
so that it reads as such:
if (
isset( $value['orig']['required'] ) &&
$value['orig']['required'] &&
// Skip Address Line 2.
isset( $value['orig']['_ctct_map_select'] ) &&
'line_2' !== $value['orig']['_ctct_map_select']
) {
Closing as the temporary fix has been provided, and the user has indicated a closed case.