Support » Plugin: Constant Contact Forms » Contacts not being added

  • Resolved agentjimmy

    (@agentjimmy)


    – Contacts are not being added to Constant Contact
    – Have tried bypassing WP Cron scheduling with no effect
    – Turned on Debug log. Here’s what comes up:

    [2019-04-26 20:52:30] API.INFO: Contact set to be created ["Extra information",[{"form":"WpPlugInTestForm"}]] []
    [2019-04-26 20:52:30] API.INFO: json.field.invalid: #/oid: Property was found but is not permitted at this location. ["Extra information",["[object] (stdClass: {\"error_key\":\"json.field.invalid\",\"error_message\":\"#/oid: Property was found but is not permitted at this location.\"})"]] []
    [2019-04-26 20:52:30] API.INFO: json.field.invalid: #/retURL: Property was found but is not permitted at this location. ["Extra information",["[object] (stdClass: {\"error_key\":\"json.field.invalid\",\"error_message\":\"#/retURL: Property was found but is not permitted at this location.\"})"]] []
    [2019-04-26 20:52:30] API.INFO: Submitted contact data ["Extra information",[{"retURL":{"key":"retURL","val":"https://nobelbiz.com/contact/"},"oid":{"key":"oid","val":"00D2f0000008bZ5"},"email___ecd412e904309dcce66177488240b016":{"key":"email","val":"test300@nobelbiz.com"},"email":"test300@nobelbiz.com","first_name___7e7a6eef7e0a3734f39d6757b27d474b":{"key":"first_name","val":"first300"},"last_name___86b6d953df0fd1bff8e02cde526c2b3c":{"key":"last_name","val":"last300"},"phone_number___3ec49c74e9d01e21102ee2ff2fdcce18":{"key":"phone_number","val":"3035556789"},"company___c55407d66fc5c1f37e343240c8fa8df8":{"key":"company","val":"anothertest20"},"custom_text_area___99a6a1bc9800303822f0b441fd116a95":{"key":"custom_text_area","val":"some shit"},"list":"1484008787"}]] []

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

Viewing 1 replies (of 1 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    Looks like you have a script that’s adding some hidden fields to our generated form, and they’re sending values that are causing the API to reject the request.

    <script type="text/javascript">
        var element = document.querySelectorAll('[id^=email]')[0];
    
        var oidInput = document.createElement("input");
        oidInput.type = "hidden";
        oidInput.name = "oid";
        oidInput.value = "00D2f0000008bZ5";
    
        var retURLInput = document.createElement("input");
        retURLInput.type = "hidden";
        retURLInput.name = "retURL";
        retURLInput.value = "https://nobelbiz.com/contact/";
    
        element.parentNode.insertBefore(retURLInput, element);
        element.parentNode.insertBefore(oidInput, element);
    </script>
    

    Do you know what this block is for by any chance?

Viewing 1 replies (of 1 total)
  • The topic ‘Contacts not being added’ is closed to new replies.