Support » Plugin: Brilliant Web-to-Lead for Salesforce » [Plugin: WordPress-to-lead for Salesforce CRM] Fails to connect with salesforce

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Author Nick Ciske


    And when I upload it, it actually takes the entire site down!

    Then you have a different problem. Something in the plugin is causing a PHP error.

    Are you getting any error messages?

    Can you define what “down” looks like? (e.g. white screen, site doesn’t show, admin inaccessible, etc).

    Ok – you’re right Nick.

    I’ve fixed the 500 issue.
    But – it still says :
    Failed to connect to

    Is there a way I can for a GET, or print out to screen what is being sent ?

    if( is_wp_error($result) )
    return false;

    if (($result['response']['code'] == 200) && (strpos($result['body'],'Your request has been queued') !== false)) {

    if( $_POST['w2lcc'] == 1 )
    salesforce_cc_user($post, $options);

    if( $options['ccadmin'] )
    salesforce_cc_admin($post, $options);

    return true;

    return false;

    Plugin Author Nick Ciske


    You can print_r($result); to see what’s coming back from SalesForce. That would help determine what the error might be (please post the output here and I’ll take a look).

    That should go before the is_wp_error line.

    Nick – your help is greatly appreciated.

    Apparently there is no result found.

    Line 841 in salesforce.php :

    if (!$error) {
    $result = submit_salesforce_form($post, $options);

    echo 'RESULT='.$result;
    if($result) echo 'true';
    if(!$result) echo 'false';

    if (!$result){
    $content = ''.esc_html(stripslashes($options['sferrormsg'])).'';

    Prints this to screen :

    Plugin Author Nick Ciske


    Unfortunately, that doesn’t help as I already knew submit_salesforce_form was returning false (as the error is being output). What we need to see is the HTTP response from SF.

    So, you’ll want to find this line (731):

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

    And add print_r($result); beneath it.

    That will output the actual response from SalesForce’s API, which should give us a clue why it’s not successfully submitting the lead.

    Arsham Mirshah


    Hey everyone, I know how much of a pain it can be when the connection to SalesForce doesn’t work.. really hate it when the sales people are yelling at me!

    Here is a tutorial for how to connect salesforce web-to-lead with php in your wordpress website.

    It has a php form processor script that you can copy and paste with little modification and get to work.

    Let me know if it helps and if you need any help with it!

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘[Plugin: WordPress-to-lead for Salesforce CRM] Fails to connect with salesforce’ is closed to new replies.