• Resolved anbion

    (@anbion)


    The contact form I created directly with the SugarCRM works just nicely. It uses the same ‘/index.php?entryPoint=WebToLeadCapture’ way of contacting the SugarCRM server.

    However, when I use the exact same SugarCRM parameters (Campaign ID, User ID,..) in the same website using the SugarCRM web-to-lead plugin, I get the following error message (attn: I purposefully changed the domain details away):


    Fatal error: Uncaught exception 'Exception' with message 'Problem with http://my.domain.com/crm/index.php?entryPoint=WebToLeadCapture, ' in /home/mydomain/wp-content/plugins/sugarcrm-web-to-lead/sugar-form.php:190 Stack trace: #0 /home/mydomain/wp-content/plugins/sugarcrm-web-to-lead/sugar-form.php(47): SugarForm->sendMail('', '') #1 /home/mydomain/wp-content/plugins/sugarcrm-web-to-lead/sugar-form.php(451): SugarForm->showForm() #2 [internal function]: SugarForm->shortcode('', '', 'SUGAR-FORM') #3 /home/mydomain/wp-includes/shortcodes.php(235): call_user_func(Array, '', '', 'SUGAR-FORM') #4 [internal function]: do_shortcode_tag(Array) #5 /home/mydomain/wp-includes/shortcodes.php(151): preg_replace_callback('/\[(\[?)(wp_cap...', 'do_shortcode_ta...', '[SUGAR-FORM]?') #6 [internal function]: do_shortcode('[SUGAR-FORM]?') #7 /home/mydomain/wp-includes/plugin.php(170): call_user_func_array('do_shortcode', Array) #8 /home/mydomain/wp-includes/ in /home/mydomain/wp-content/plugins/sugarcrm-web-to-lead/sugar-form.php on line 190

    This is how the plugin sends the request (sugar-form.php):

    // Make the request
    		$url = $this->o['sugar_url'].'/index.php?entryPoint=WebToLeadCapture';
    		$fp = @fopen($url, 'rb', FALSE, $ctx);
    		if (!$fp) {
    			throw new Exception("Problem with $url, $php_errormsg");
    		}

    Any idea what might be the problem, please?

    Thank you for any help!

    http://wordpress.org/extend/plugins/sugarcrm-web-to-lead/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter anbion

    (@anbion)

    I got it solved:

    The SugarCRM website was configured to use basic http authentication. The plugin did not cope with this. Everything worked when I tested without the authentication.

    A tip to the developers: you might want to add a request that checks for the authentication and the script pops up an authentication window, if needed. Not a biggie addition.

    anbion,
    i have the same error. can you please explain how to remove http authentication.
    perhaps a sample code.
    thnx

    Thread Starter anbion

    (@anbion)

    The http authentication is defined in the .htaccess file in your website’s root directory and/or in subfolders, if you have folder specific control files.

    In this .htaccess file, you can set a password protection to your site or some directory, like

    AuthName "Member's Area Name"
    AuthUserFile /path/to/password/file/.htpasswd
    AuthType Basic
    require valid-user

    In my earlier example, the site my.domain.com was password protected and this is why the plugin could not sent the lead information:

    http://my.domain.com/crm/index.php?entryPoint=WebToLeadCapture

    Edit or remove the (hidden) .htaccess file, and the plugin should work. As far as I can tell, there is nothing wrong in the actual plugin. It just cannot penetrate the password protection.

    thnx anbion, i solved my problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"SugarCRM web-to-lead" Plugin does not connect to the SugarCRM Server’ is closed to new replies.