Hey Marek,
Both oAuth and API Key use the exact same cURL script, just with two different sets of tokens, basically… We use API Key on all of our projects except one: Certain HubSpot accounts don’t allow the use of API Keys.
Are you using a Professional or Enterprise HubSpot account?
Hi Soben!
Thanks for the reply, from what I understand we have a Professional account which claims to allow us to use the HubSpot API. How could I find out the actual error that is generated when the data doesn’t go in?
The error would probably be coming from the /library/hubspot/class.forms.php file, particularly around line 40
catch(HubSpot_Exception $e){
print_r("Unable to submit form: ".$e);
}
Make sure your PHP errors are being printed out. I’ll try to do some more extensive testing on this, but I have not had any issues with either format :-\
Hey marek,
Hoping this problem has been completely resolved for you. All of my future testing all appears to be working great. oAuth is now 100% up and running where you should never need to use the API Key (though I’ve kept it there as an option).
Also, with the release of v2.0 some other issues have been solved, and as a whole the plugin is running much smoother.
I have also provided a much more extensive debug log if you’re interested in using it. Put the following code in your functions.php or your wp-config.php
define('GF_HUBSPOT_DEBUG', true);
After that, you can find the error log here:
/path/to/wordpress/wp-content/uploads/gf-hubspot.log
Thanks Soben! Appreciate the follow up and congratulations on getting it all working 100%