• Resolved sahil89

    (@sahil89)


    On submitting form I get ‘success’ message and I also receive email of form submission but Lead doesn’t get captured. I tried adding debug fields as you suggested in FAQ but that doesn’t do anything different.

    After spending some time in Salesform account I generated a lead form and embedded it in my site, that form successfully captured the lead. Is this plugin reliable? as it shows that it was last updated a year ago. Is it official plugin by Salesforce?

    • This topic was modified 8 years, 2 months ago by sahil89.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Salesforce updated the requirements for TLS. I was having this issue and went into the code and had it spit out the salesforce request. What comes back is not an error in the traditional sense so the way this plugin is coded you get no error but if you spit out the request it will tell you that TLS 1.1 or higher is required.

    If this turns out to be your issue you’ll have to update openSSL on the server.

    To see if this is your issue find the following lines in salesforce.php

    $result = wp_remote_post( $url, $args );

    // Test broken submit
    //$result = new WP_Error( ‘broke’, __( “I’ve fallen and can’t get up”, “my_textdomain” ) );

    Add print_r($result); above “// Test broken submit”

    So now it looks like:

    $result = wp_remote_post( $url, $args );
    print_r($result);
    // Test broken submit
    //$result = new WP_Error( ‘broke’, __( “I’ve fallen and can’t get up”, “my_textdomain” ) );

    Submit a form that is having issues. It should tell you your error. At least it did for me.

    Be sure to delete “print_r($result);” after your test.

    • This reply was modified 8 years, 2 months ago by kgrondell.
    • This reply was modified 8 years, 2 months ago by kgrondell.
    Plugin Author Nick Ciske

    (@nickciske)

    Thanks, I’ll see if I can address these in the next release.

    I’m having the same problem (Lead doesn’t get captured.) kgrondell, I added your code and got this on my page:
    Array ( [headers] => Array ( [date] => Sun, 25 Sep 2016 23:06:53 GMT [strict-transport-security] => max-age=10886400; includeSubDomains; preload [content-security-policy-report-only] => default-src https:; script-src https: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'; img-src https: data:; font-src https: data:; report-uri /_/ContentDomainCSPNoAuth?type=login [set-cookie] => BrowserId=DpMPbhQiS6Kq4dLMBi3y8w;Path=/;Domain=.salesforce.com;Expires=Thu, 24-Nov-2016 23:06:53 GMT [expires] => Thu, 01 Jan 1970 00:00:00 GMT [cache-control] => private [content-type] => text/html;charset=UTF-8 [connection] => close ) [body] => [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( [0] => WP_Http_Cookie Object ( [name] => BrowserId [value] => DpMPbhQiS6Kq4dLMBi3y8w [expires] => 1480028813 [path] => / [domain] => .salesforce.com ) ) [filename] => )

    Can you tell me what my problem is? Thanks!

    That’s essentially the error although it looks like only part of what I got back.

    Essentially your server is trying to use CURL to connect to salesforce. The problem is your server only supports TLS 1.0 and salesforce now requires TLS 1.1.

    On my server I checked the openSSL and it was a sub 1.0 (.98 I believe) version and openSSL did not support TLS 1.1 until something like 1.13b and our host was unwilling to update openSSL so I had to write a template that rendered the correct web to lead code on the page and disable the plugin.

    It’s a shame because the the plugin is fine. Once we migrate their sites to a more modern server we will move the forms back to the plugin.

    Plugin Author Nick Ciske

    (@nickciske)

    Correct, the plugin uses the WordPress HTTP functions which use cURL on most servers.

    I can’t fix an out of date cURL install, sorry…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Lead doesn’t get captured’ is closed to new replies.