• Resolved 3r1c

    (@3r1c)


    Looking for some help here. The following message appears to users after they submit their sign-up form.

    An error occurred while attempting Constant Contact API request. Please check your details and try again.

    We have already tried disconnecting and reconnecting our Constant Contact account with your plugin.

    Here is the data from the debug log.

    [2022-10-05 13:29:38] API.INFO: Contact set to be created ["Extra information",[{"form":"Newsletter Sign-Up"}]] []
    [2022-10-05 13:29:38] API.INFO: ConstantContact_API::add_contact:527  - json.field.invalid - #/ak_bck: Property was found but is not permitted at this location. [] []
    [2022-10-05 13:29:38] API.INFO: Submitted contact data ["Extra information",[{"first_name___185b795264e09a98fe0f4e47e70e8e90":{"key":"first_name","val":"FIRSTNAME"},"last_name___7844763b59c9491b69645b716220aad7":{"key":"last_name","val":"LASTNAME"},"email___3c59495a3edf2d27cd20fc1987544522":{"key":"email","val":"***@EXAMPLE.ca"},"email":"***@EXAMPLE.ca","lists___699654c1b923288589ec85c905833902":{"key":"lists","val":""},"ak_bib":{"key":"ak_bib","val":"1664976550970"},"ak_bfs":{"key":"ak_bfs","val":"1664976577918"},"ak_bkpc":{"key":"ak_bkpc","val":"17"},"ak_bkp":{"key":"ak_bkp","val":"85,115;77,107;108,491;131,99;132,88;84,69;179,50;117,83;132;76,60;113,61;115,79;105,1387;116,147;139,64;159,50;58,4;"},"ak_bmc":{"key":"ak_bmc","val":"116;87,24805;142,2949;"},"ak_bmcc":{"key":"ak_bmcc","val":"3"},"ak_bmk":{"key":"ak_bmk","val":"-1;2;12;16"},"ak_bck":{"key":"ak_bck","val":"16"},"ak_bmmc":{"key":"ak_bmmc","val":"8"},"ak_btmc":{"key":"ak_btmc","val":"0"},"ak_bsc":{"key":"ak_bsc","val":"1"},"ak_bte":{"key":"ak_bte","val":""},"ak_btec":{"key":"ak_btec","val":"0"},"ak_bmm":{"key":"ak_bmm","val":"284,396;1055,458;770,53;588,125;1,45;115,45;1348,2460;824,2500;"},"list":["1242415003"]}]] []

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter 3r1c

    (@3r1c)

    This message is displayed on the admin side:

    Constant Contact Forms has experienced issues that may need addressed and functionality may be missing. Please enable the “Support” checkbox under the Support tab in Constant Contact settings and start a forum support thread. Our support team will aid with further steps.

    Plugin Author Constant Contact

    (@constantcontact)

    Do you have some sort of form spam plugin or customizations in place for the site? It looks like a field named ak_bck, possibly a hidden one, is getting included with the request and because the API to add the contact doesn’t know what that is, it ends up rejecting the request and throwing an error.

    Thread Starter 3r1c

    (@3r1c)

    Thank you for the quick response! Yes, we’re using the Akismet Anti-Spam plugin. Deactivating the Akismet plugin solves the problem. This scenario isn’t ideal since we have other forms on the website we need to protect. Do you have any suggestions?

    Plugin Author Constant Contact

    (@constantcontact)

    You should be able to get some compatibility added with the following code snippet.

    function constant_contact_support_exclude_akisment( $ignored ) {
    	$ignored[] = 'ak_bck';
    
    	return $ignored;
    }
    add_filter( 'constant_contact_ignored_post_form_values', 'constant_contact_support_exclude_akisment' );
    

    It should make it so the ak_bck field gets removed from the API request.

    Thread Starter 3r1c

    (@3r1c)

    Unfortunately, the function you provided did not fix the error. Here is the data from the debug log

    [2022-10-17 17:17:53] API.INFO: Contact set to be created ["Extra information",[{"form":"Newsletter Sign-Up"}]] []
    [2022-10-17 17:17:54] API.INFO: Submitted contact data ["Extra information",[{"first_name___185b795264e09a98fe0f4e47e70e8e90":{"key":"first_name","val":"FIRSTNAME"},"last_name___7844763b59c9491b69645b716220aad7":{"key":"last_name","val":"LASTNAME"},"email___3c59495a3edf2d27cd20fc1987544522":{"key":"email","val":"***@EXAMPLE.ca"},"email":"***@EXAMPLE.ca","lists___699654c1b923288589ec85c905833902":{"key":"lists","val":""},"list":["1242415003"]}]] []
    • This reply was modified 2 years, 1 month ago by 3r1c.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    .

    Plugin Author Constant Contact

    (@constantcontact)

    That looks like a successful submission to me, and not an indication of an error still occurring. I believe you are good to go here and nothing needing to be troubleshot at the moment. Feel free to disable debugging as well.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Constant Contact Forms has experienced issues that may need addressed and functi’ is closed to new replies.