• Resolved cabbagehillseo

    (@cabbagehillseo)


    I’ve used the Constant Contact Forms WordPress Plugin on my site http://www.integritypropertyservice.com/findoutmore. I didn’t change any code. Just wanted a simple sign up form. However, I keep getting an error when testing the form and have had clients report having the same issue. When you enter your information and try to submit it occassionally it will say there was an error with the information input and to check your input and try again. It doesn’t happen all the time. I haven’t had the issue from my iphone on Safari. But I have had the issue from my PC using Chrome. Not sure if that is realted.
    I just ran updates on wordpress and plugins and the issue persisted. Currently running wordpress (4.7.1) and the plugin (1.1.1)

    After running update it output an error code that it had not before

    Notice: Undefined index: _ctct_map_select in /home/integrityps/public_html/wp-content/plugins/constant-contact-forms/includes/class-process-form.php on line 451

    Any help with be appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thread Starter cabbagehillseo

    (@cabbagehillseo)

    “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.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thread Starter cabbagehillseo

    (@cabbagehillseo)

    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/

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thread Starter cabbagehillseo

    (@cabbagehillseo)

    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.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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']
    ) {
    
    Plugin Author Constant Contact

    (@constantcontact)

    Closing as the temporary fix has been provided, and the user has indicated a closed case.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘WordPress Form error on customer entry’ is closed to new replies.