Title: Lead doesn&#8217;t get captured
Last modified: September 2, 2016

---

# Lead doesn’t get captured

 *  Resolved [sahil89](https://wordpress.org/support/users/sahil89/)
 * (@sahil89)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/lead-doesnt-get-captured/)
 * 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 9 years, 9 months ago by [sahil89](https://wordpress.org/support/users/sahil89/).

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

 *  [kgrondell](https://wordpress.org/support/users/kgrondell/)
 * (@kgrondell)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/lead-doesnt-get-captured/#post-8202833)
 * 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 9 years, 8 months ago by [kgrondell](https://wordpress.org/support/users/kgrondell/).
    -  This reply was modified 9 years, 8 months ago by [kgrondell](https://wordpress.org/support/users/kgrondell/).
 *  Plugin Author [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/lead-doesnt-get-captured/#post-8203119)
 * Thanks, I’ll see if I can address these in the next release.
 *  [seanflaherty](https://wordpress.org/support/users/seanflaherty/)
 * (@seanflaherty)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/lead-doesnt-get-captured/#post-8219864)
 * 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!
 *  [kgrondell](https://wordpress.org/support/users/kgrondell/)
 * (@kgrondell)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/lead-doesnt-get-captured/#post-8222977)
 * 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](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/lead-doesnt-get-captured/#post-8240983)
 * 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.

 * ![](https://ps.w.org/salesforce-wordpress-to-lead/assets/icon-256x256.png?rev
   =2316786)
 * [Brilliant Web-to-Lead for Salesforce](https://wordpress.org/plugins/salesforce-wordpress-to-lead/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salesforce-wordpress-to-lead/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/)
 * [Active Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/lead-doesnt-get-captured/#post-8240983)
 * Status: resolved