Chris Lagasse
Forum Replies Created
-
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] Authenticate with HubSpot resetsHey Daniel,
How’d the cron work out? Really hoping it worked great for you 🙂
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] Authenticate with HubSpot resetsI mean “beta” as it’s included in the plugin, but I have not been able to thoroughly test it yet. But the code appears solid, and I’ve tested it OUTSIDE of cron successfully.
If you look at the plugins folder you can find it here:
/gravityforms-hubspot/library/cron.php
Just set up a server side CRON using that, run it around every 6 hours or so?
I’d love to hear your thoughts on it, and let me know if it works fine fully set up 🙂
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] Authenticate with HubSpot resetsYes, but as I’ve suggested in the FAQ as well, while oAuth is more secure, it’s unreliable if people aren’t visiting the site every 8 hours for CERTAIN. The WP Cron requires users to be visiting the site, so if it goes beyond the 8 hours between visiting (like it typically does at night), it’ll fall apart, because we can’t even re-authenticate even if we have an older token… once it expires.
You are better off using the API key method (also described on the plugin)… or setting up a server-side cron (in beta).
I’m sorry for the delay on this, we’ve been swamped with other work. 🙂
Yes, visitor tracking isn’t included in this. I am quite sure that as long as you have the HubSpot for WordPress plugin (separate plugin, official, I think) you won’t lose the data.
We use this on our official site at http://bigseadesign.com … and we haven’t noticed issues with this. And I know my boss would say something if the stats weren’t working right 🙂
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] Debug errorsI can’t see any clear reason for the first one, but I reworked the code anyways, in an effort to prevent it.
As for the second error: resolved, and will be pushed up shortly.
Thanks for the heads up!
Hey Imran,
That’s a good question. I’m not entirely sure, and I’ll have to look into it. I don’t believe that’s possible the way you have it set up. It also depends on what HubSpot has available…
One possibility, off the top of my head, is to create a hidden gravityforms field, and then on submission, fill it in with the checkboxes, to be submitted, and use that hidden field to send to HubSpot.
But normally, there’s only a one-to-one relationship for GF field to HS field.
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] fatal error class Hubspot_FormsJeez. I’m sorry you’re encountering this robspurlock.
Have you gone in and deleted the plugin via FTP?
This is crazy, because I haven’t encountered this at all. I will try to replicate, but as I said, I haven’t had any luck :-\
Sorry that you’re having issues…
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] Hubspot needs Authorized again and again!Imran,
That script won’t technically work right now as a cron job. The file itself doesn’t have WordPress prepared for it (it’s meant to run as part of the larger WordPress package)
Hence why I said I will have to create a special function/file for this purpose. I’ll try to spend some time today working on this for you.
-Chris.
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] Hubspot needs Authorized again and again!Download the latest version (1.3) and use the method I mentioned above (API Key)… it doesn’t have the same oAuth expiration token limit.
Had issues with API Key method (I hadn’t touched it in so long due to implementing oAUth), so I had to push a fix for it. 🙂
Let me know if this solves your problem. Marking it resolved on Monday, unless you have issues.
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] Hubspot needs Authorized again and again!I am double checking that the API Key method works right now, and if it doesn’t, I’ll push a fix momentarily.
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] Hubspot needs Authorized again and again!Imran,
Unfortunately that isn’t something I can fix. This is a limitation on the part of HubSpot…
The oAuth authentication token from HubSpot is only valid for 8 hours.
We use WordPress’s CRON to request a new authorization token before these 8 hours are up. Unfortunately, WordPress’s CRON requires a user to visit your website… So if you go more than 8 hours without a visitor visiting the site, there is absolutely nothing I can do about it, and the token expires.
A current in-place work around it is by not using oAuth, and using the “API Key” method instead. You can get an API key by going here: https://app.hubspot.com/keys/get
It’s frustrating and I wish there was a way around this with oAuth, but there isn’t. The only other way I can work around this is by building a CRON that can run on your server, but that requires an extra admin step (cPanel, Plesk, etc), that most WordPress users aren’t familiar yet, and potentially don’t even have access to. I will consider adding it in the future, at least so it’s an option that’s available.
-Chris.
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] fatal error class Hubspot_Formsv1.2 has every class wrapped in a “if (class_exists)” to prevent this error.
However, I actually just realized that I’ve only encountered this issue once… years ago… and it was because of the WordPress theme and/or plugins weren’t coded correctly and were causing multiple instances of WordPress items (such as plugins)…
You might want to look at your code and make sure that your site isn’t loading multiple instances of every plugin. It could’ve just been my plugin, but since I can’t replicate, that’s unlikely.
Nonetheless, this new update will remove that error for you.
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] fatal error class Hubspot_FormsHmm, that’s weird, because I run that plugin locally too, in my testing environment.
However, I’ll add some checks for redundant classes to prevent this, and get it up later today.
Forum: Plugins
In reply to: [HubSpot for Gravity Forms] Fatal ErrorHey 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.Forum: Plugins
In reply to: [HubSpot for Gravity Forms] fatal error class Hubspot_FormsHey Robspurlock,
Are you running any other plugins that use HubSpot? I haven’t encountered anything like this yet, where the class is running twice, so, that’s my first guess. Trying to narrow this down.
I’ll look into it today. What version are you using?