• Resolved generalmacbeth

    (@generalmacbeth)


    Not having any trouble getting this plugin to connect to Hubspot. However, when I attempt to submit the form, I get the following error:

    PHP Fatal error: Class 'HubSpot_Exception' not found in *MYROOT*\wp-content\plugins\gravityforms-hubspot\library\hubspot\class.baseclient.php on line 266

    Additionally, I’m unable to use the API key (it won’t recognize it as valid). I’m using oAuth for now.

    https://www.ads-software.com/plugins/gravityforms-hubspot/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Chris Lagasse

    (@soben)

    General MacBeth,

    I am looking at this right now, and I’ll get back to you shortly ??

    Are you sure you grabbed the right API Key? There are two different kinds of API keys that hubspot provides. It’s really weird.

    Plugin Author Chris Lagasse

    (@soben)

    General MacBeth…

    Are you certain that your server supports cURL? I ask because that particular line where the PHP error occurs, is because the system couldn’t make a cURL request. I’m not sure of the exact error, because I can’t see it (it will output properly on your system now)

    This might also explain why you’re able to connect with oAuth but not with the API Key.

    Hmm, then again, the authentication wouldn’t be validated if cURL wasn’t installed. I can’t replicate locally, so my guess is that HubSpot is returning an error for you.

    I just uploaded a fix (1.1.1) for the HubSpot_Exception PHP error. However, make sure that error messages are being output for the server, and try submitting the form again. Let me know what the actual cURL error is, and I can dig deeper with that information.

    Thanks!
    -Chris.

    Thread Starter generalmacbeth

    (@generalmacbeth)

    I’ve double checked, and I do have cURL enabled.

    Unfortunately, when I updated the plugin and activated it, I get the same error, but on every page without even submitting any form. Had to FTP and manually delete it.

    If it’s any help, I’m on an IIS7 server.

    Plugin Author Chris Lagasse

    (@soben)

    I’m sorry about that….

    I seriously can’t replicate your issue. I am going to try to get access to an IIS server so I can test this.

    This isn’t happening on any LAMP environment that I have set up.

    Thread Starter generalmacbeth

    (@generalmacbeth)

    Finally got an error to log on this:

    Unable to submit form: exception 'HubSpot_Exception' with message 'cURL error: SSL certificate problem: self signed certificate in certificate chain' in "MYROOT"\httpdocs\wp-content\plugins\gravityforms-hubspot\library\hubspot\class.baseclient.php:266 Stack trace: #0 "MYROOT"\httpdocs\wp-content\plugins\gravityforms-hubspot\library\hubspot\class.forms.php(43): HubSpot_BaseClient->execute_post_request('https://forms.h...', '&firstname=Marc...', true) #1 "MYROOT"\httpdocs\wp-content\plugins\gravityforms-hubspot\gravityforms-hubspot.php(160): HubSpot_Forms->submit_form('393265', '13291fc0-4f53-4...', Array, Array) #2 [internal function]: bsdGFHubspot::gravityforms_submission(Array, Array) #3 "MYROOT"\httpdocs\wp-includes\plugin.php(470): call_user_func_array(Array, Array) #4"MYROOT"\httpdocs\wp-content\plugins\gravityforms\form_display.php(112): do_action('gform_after_sub...', Array, Array) #5 "MYROOT"\httpdocs\wp-content\plugins\gravityforms\gravityforms.php(280): GFFormDisplay::process_form(5) #6 [internal function]: GFForms::maybe_process_form(Object(WP)) #7 "MYROOT"\httpdocs\wp-includes\plugin.php(546): call_user_func_array(Array, Array) #8 "MYROOT"\httpdocs\wp-includes\class-wp.php(623): do_action_ref_array('wp', Array) #9 "MYROOT"\httpdocs\wp-includes\functions.php(829): WP->main('') #10 "MYROOT"\httpdocs\wp-blog-header.php(14): wp() #11 "MYROOT"\httpdocs\index.php(17): require('"MYROOT"') #12 {main}

    Thread Starter generalmacbeth

    (@generalmacbeth)

    I’m assuming I simply have an issue with my SSL certificate here. I’ll contact my host and see what options I have.

    Plugin Author Chris Lagasse

    (@soben)

    Hey generalmacbeth,

    Did you ever resolve this issue? I’m sorry I wasn’t of more help. I still haven’t encountered anything similar to this during all of the code, or enhancements, I’ve been doing thus far.

    Thanks,
    -Chris.

    Thread Starter generalmacbeth

    (@generalmacbeth)

    I’m afraid I didn’t, and ended up coming up with a workaround. I’m moving the site soon (for a variety of reasons) from IIS running FastCGI to an Ubuntu running Apache (the only setup that WordPress seems really comfortable with anyway). I might try the plugin again after that.

    It’s not that it didn’t seem to work, just not on my Windows setup.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal Error’ is closed to new replies.