# Mautic and Hubspot CRM

**URL:** <https://forum.mautic.org/t/mautic-and-hubspot-crm/6893>\
**Category:** General Discussion\
**Created:** [December 19, 2016, 8:46am UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893 "2016-12-19T08:46:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottrdoel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@scottrdoel](https://forum.mautic.org/u/scottrdoel)\
**Post date:** [December 19, 2016, 8:46am UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/1 "2016-12-19T08:46:56Z")

</div>

Hi All,  
  
  
  
I’m having trouble with two-way sync for Mautic to Hubspot CRM.  
  
So far I have added the API and linked the fields (after creating the form) and the lead is pushed from the form into Hubspot. But if I update the contact in Mautic then the contact in Hubspot does not update.  
  
Also if I create the user in manually Hubspot then it doesn’t populate in Mautic.  
  
Cron jobs I have created are below and I have these running every 4 mins (so they don’t run at the same time as another:  
  
mautic:integration:pushactivity  
  
mautic:integration:fetchleads  
  
mautic:integration:pushleadactivity  
  
  
  
I believe they are running correctly as the link from Mautic to Hubspot from a form submission works

---

<div class="post-metadata">

**Author:** ![scottrdoel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@scottrdoel](https://forum.mautic.org/u/scottrdoel)\
**Post date:** [December 19, 2016, 8:46am UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/2 "2016-12-19T08:46:56Z")

</div>

Hi All,

I’m having trouble with two-way sync for Mautic to Hubspot CRM.  
So far I have added the API and linked the fields (after creating the form) and the lead is pushed from the form into Hubspot. But if I update the contact in Mautic then the contact in Hubspot does not update.  
Also if I create the user in manually Hubspot then it doesn’t populate in Mautic.  
Cron jobs I have created are below and I have these running every 4 mins (so they don’t run at the same time as another:  
mautic:integration:pushactivity  
mautic:integration:fetchleads  
mautic:integration:pushleadactivity

I believe they are running correctly as the link from Mautic to Hubspot from a form submission works

---

<div class="post-metadata">

**Author:** ![scottrdoel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@scottrdoel](https://forum.mautic.org/u/scottrdoel)\
**Post date:** [December 19, 2016, 2:45pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/3 "2016-12-19T14:45:54Z")

</div>

A bit of an update, I have managed to pull the lead from Hubspot using the cron:  
/usr/local/bin/php -f public\_html/[your site]/app/console mautic:integration:fetchleads --integration=Hubspot -e prod

If I run the below Crons I get the report emailed  
/usr/local/bin/php -f public\_html/[your site]/app/console mautic:integration:pushactivity --integration=Hubspot -e prod  
Push activity timeline to salesforce mautic object  
Number of contacts processed: 0

/usr/local/bin/php -f public\_html/[your site]/app/console mautic:pushactivity:integration --integration=Hubspot -e prod  
Push activity timeline to salesforce mautic object  
Number of contacts processed: 0

---

<div class="post-metadata">

**Author:** ![scottrdoel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@scottrdoel](https://forum.mautic.org/u/scottrdoel)\
**Post date:** [December 21, 2016, 9:30pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/4 "2016-12-21T21:30:59Z")

</div>

Any help on this please

---

<div class="post-metadata">

**Author:** ![scottrdoel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@scottrdoel](https://forum.mautic.org/u/scottrdoel)\
**Post date:** [December 23, 2016, 7:28pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/5 "2016-12-23T19:28:20Z")

</div>

Hey anyone have any help on this?

---

<div class="post-metadata">

**Author:** ![senol](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@senol](https://forum.mautic.org/u/senol)\
**Post date:** [December 30, 2016, 12:28am UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/6 "2016-12-30T00:28:30Z")

</div>

I read somewhere else on the forum that the 2way sync is a bug.  
only 2way sync availlable at this stage is with salesforce, not with Hubspot.

forget everything I wrote… i am mistaken. sorry  
[https://www.mautic.org/blog/developer/mautic-2-4-more-integrations-more-sharing/](https://www.mautic.org/blog/developer/mautic-2-4-more-integrations-more-sharing/)

---

<div class="post-metadata">

**Author:** ![scottrdoel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@scottrdoel](https://forum.mautic.org/u/scottrdoel)\
**Post date:** [January 1, 2017, 11:35am UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/7 "2017-01-01T11:35:34Z")

</div>

Thanks for trying buddy  
Can Anyone help on two-way sync???

---

<div class="post-metadata">

**Author:** ![scottrdoel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@scottrdoel](https://forum.mautic.org/u/scottrdoel)\
**Post date:** [January 3, 2017, 3:42pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/8 "2017-01-03T15:42:51Z")

</div>

Bump

---

<div class="post-metadata">

**Author:** ![scottrdoel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@scottrdoel](https://forum.mautic.org/u/scottrdoel)\
**Post date:** [January 4, 2017, 6:52pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/9 "2017-01-04T18:52:53Z")

</div>

Thanks @MxyzptlkFishStix I will try that tomorrow

---

<div class="post-metadata">

**Author:** ![scottrdoel](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@scottrdoel](https://forum.mautic.org/u/scottrdoel)\
**Post date:** [January 5, 2017, 9:22am UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/10 "2017-01-05T09:22:33Z")

</div>

Hi @MxyzptlkFishStix it still does not work.

I have the cron jobs running every minute for the moment

```auto
/usr/local/bin/php public_html/email/app/console mautic:integration:pushleadactivity --integration=Hubspot >/dev/null 2>&1
```

```auto
/usr/local/bin/php public_html/email/app/console mautic:integration:fetchleads --integration=Hubspot >/dev/null 2>&1
```

The fields are mapped and the API is ok. If I use a form from Mautic then the lead is pushed across fine. But if I enter a contact Manually in either platform they are not synced

---

<div class="post-metadata">

**Author:** ![nickbuc](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nickbuc](https://forum.mautic.org/u/nickbuc)\
**Post date:** [January 9, 2017, 3:01am UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/11 "2017-01-09T03:01:56Z")

</div>

Any progress?

I can sync contacts and companies from Hubspot to Mautic, but the sync does not work from Mautic to Hubspot.  
I mapped the fields and setup the cron jobs but get the following errors:

PHP Notice: Undefined index: vid-offset in /opt/bitnami/apps/mautic/htdocs/plugins/MauticCrmBundle/Integration/HubspotIntegration.php on line 320  
PHP Notice: Undefined index: time-offset in /opt/bitnami/apps/mautic/htdocs/plugins/MauticCrmBundle/Integration/HubspotIntegration.php on line 321  
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 14 bytes) in /opt/bitnami/apps/mautic/htdocs/app/bundles/PluginBundle/Integration/AbstractIntegration.php on line 485

Any idea about what I am doing wrong?

---

<div class="post-metadata">

**Author:** ![nickbuc](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nickbuc](https://forum.mautic.org/u/nickbuc)\
**Post date:** [January 12, 2017, 3:24pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/12 "2017-01-12T15:24:15Z")

</div>

I keep increasing the memory in php.ini (now at 1024M) but I am still facing the same issue: I can’t send contacts from Mautic to Hubspot…

---

<div class="post-metadata">

**Author:** ![nickbuc](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nickbuc](https://forum.mautic.org/u/nickbuc)\
**Post date:** [January 12, 2017, 11:09pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/13 "2017-01-12T23:09:02Z")

</div>

@MxyzptlkFishStix Thanks so much for your support!

Below is an example of the simplest campaign strictly to test the integration.  
Hubspot to Mautic is working well, but Mautic to Hubspot does not trigger…

![](https://thevisionlab.com/wp-content/themes/thevisionlab/images/ScreenShot20170112_Mautic_Hibspot.png)

Let me know if there is anything else I could send. I am using version 2.5.1.

---

<div class="post-metadata">

**Author:** ![nickbuc](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nickbuc](https://forum.mautic.org/u/nickbuc)\
**Post date:** [January 13, 2017, 2:24pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/14 "2017-01-13T14:24:16Z")

</div>

@MxyzptlkFishStix one more thing. I am now getting a new error when running the script:

After the many lines of PHP Notice (I only show the last one) the error message is:  
PHP Notice: Undefined index: vid-offset in /opt/bitnami/apps/mautic/htdocs/plugins/MauticCrmBundle/Integration/HubspotIntegration.php on line 320  
PHP Notice: Undefined index: time-offset in /opt/bitnami/apps/mautic/htdocs/plugins/MauticCrmBundle/Integration/HubspotIntegration.php on line 321  
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 250663 bytes) in /opt/bitnami/apps/mautic/htdocs/vendor/joomla/http/src/Transport/Curl.php on line 172

[SymfonyComponentDebugExceptionOutOfMemoryException]  
Error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 250663 bytes)

I am not using Joomla and did not integrate with Joomla. Not sure if this helps.

Thanks again for your support. I’d love to make it work!

---

<div class="post-metadata">

**Author:** ![yakov116](https://avatars.discourse-cdn.com/v4/letter/y/e9a140/32.png) [@yakov116](https://forum.mautic.org/u/yakov116)\
**Post date:** [January 16, 2017, 4:10pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/15 "2017-01-16T16:10:40Z")

</div>

PHP Fatal error: Call to a member function mergeConfigToFeatureSettings() on boolean in /home/[user]/[site]/mautic/app/bundles/PluginBundle/Command/FetchLeadsCommand.php on line 93

[SymfonyComponentDebugExceptionFatalErrorException]  
Error: Call to a member function mergeConfigToFeatureSettings() on boolean

mautic:integration:fetchleads [-i|–integration INTEGRATION] [-d|–start-date START-DATE] [-t|–end-date END-DATE] [-a|–time-interval [TIME-INTERVAL]] [-f|–force] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-s|–shell] [–process-isolation] [-e|–env ENV] [–no-debug] [–] \<com

---

<div class="post-metadata">

**Author:** ![yakov116](https://avatars.discourse-cdn.com/v4/letter/y/e9a140/32.png) [@yakov116](https://forum.mautic.org/u/yakov116)\
**Post date:** [January 16, 2017, 5:55pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/16 "2017-01-16T17:55:39Z")

</div>

any one?

---

<div class="post-metadata">

**Author:** ![yakov116](https://avatars.discourse-cdn.com/v4/letter/y/e9a140/32.png) [@yakov116](https://forum.mautic.org/u/yakov116)\
**Post date:** [January 16, 2017, 6:51pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/17 "2017-01-16T18:51:17Z")

</div>

[quote=18978:@MxyzptlkFishStix]It would help if you described your setup in detail.

Web Server Type: Hosted  
Web Server Type Version:  
PHP Version: 5.6 (i think)  
Mautic Version: 2.5.1  
PHP Error Logs:

`[2017-01-16 16:36:47] mautic.ERROR: INTEGRATION ERROR: Hubspot - Address in mailbox given [Unknown] does not comply with RFC 2822, 3.6.2. [] []
[2017-01-16 16:36:47] mautic.ERROR: INTEGRATION ERROR: Hubspot - Address in mailbox given [Unknown] does not comply with RFC 2822, 3.6.2. [] []
[2017-01-16 16:36:48] mautic.ERROR: INTEGRATION ERROR: Hubspot - Address in mailbox given [Unknown] does not comply with RFC 2822, 3.6.2. [] []
[2017-01-16 16:36:48] mautic.ERROR: INTEGRATION ERROR: Hubspot - Address in mailbox given [Unknown] does not comply with RFC 2822, 3.6.2. [] []
[2017-01-16 16:47:39] mautic.ERROR: [MAIL ERROR] Address in mailbox given [] does not comply with RFC 2822, 3.6.2. [] []
[2017-01-16 16:51:19] mautic.ERROR: [MAIL ERROR] Address in mailbox given [] does not comply with RFC 2822, 3.6.2. [] []
`  
Web Server Error Logs:[/quote]

---

<div class="post-metadata">

**Author:** ![yakov116](https://avatars.discourse-cdn.com/v4/letter/y/e9a140/32.png) [@yakov116](https://forum.mautic.org/u/yakov116)\
**Post date:** [January 16, 2017, 7:45pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/18 "2017-01-16T19:45:21Z")

</div>

Bump

---

<div class="post-metadata">

**Author:** ![yakov116](https://avatars.discourse-cdn.com/v4/letter/y/e9a140/32.png) [@yakov116](https://forum.mautic.org/u/yakov116)\
**Post date:** [January 17, 2017, 5:40pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/19 "2017-01-17T17:40:48Z")

</div>

> [@18985:@MxyzptlkFishStix](#):
>
> regex validator

Its shared.

What should i do in the “regex validator”?

---

<div class="post-metadata">

**Author:** ![yakov116](https://avatars.discourse-cdn.com/v4/letter/y/e9a140/32.png) [@yakov116](https://forum.mautic.org/u/yakov116)\
**Post date:** [January 17, 2017, 7:44pm UTC](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893/20 "2017-01-17T19:44:12Z")

</div>

[quote=19022:@MxyzptlkFishStix]You have an invalid email in the list you’ve uploaded. Example: [yakov..116@gmail.com](mailto:yakov..116@gmail.com) or [yakov116.@gmail.com](mailto:yakov116.@gmail.com) or yakov116@.gmail.com, etc.

You’ll have to find an email validation service to clean it out unless you happen to know the email address that is giving you problems. Where did you get the list from? Did you purchase it or download it from somewhere?[/quote]  
In where? i have 3 contacts total. i just started

[Next page](https://forum.mautic.org/t/mautic-and-hubspot-crm/6893.md?page=2)
