# Mautic and vTiger open source integration error

**URL:** <https://forum.mautic.org/t/mautic-and-vtiger-open-source-integration-error/32832>\
**Category:** Product Support\
**Created:** [July 20, 2024, 7:13pm UTC](https://forum.mautic.org/t/mautic-and-vtiger-open-source-integration-error/32832 "2024-07-20T19:13:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ncmon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ncmon/32/11887_2.png) [@ncmon](https://forum.mautic.org/u/ncmon)\
**Post date:** [July 20, 2024, 7:13pm UTC](https://forum.mautic.org/t/mautic-and-vtiger-open-source-integration-error/32832/1 "2024-07-20T19:13:33Z")

</div>

**Your software**  
My Mautic version is: 5.1  
My PHP version is: 8.2  
My Database type and version is:

**Your problem**  
My problem is:

In PushLeadActivityCommand.php line 76:

method\_exists(): Argument #1 ($object\_or\_class) must be of type object|stri  
ng, bool given

mautic:integration:pushleadactivity [-i|–integration INTEGRATION] [-d|–start-date START-DATE] [-t|–end-date END-DATE] [-a|–time-interval [TIME-INTERVAL]] [-f|–force]

These errors are showing in the log:

Steps I have tried to fix the problem:

I’ve mapped the fields;  
Clear the cache;  
setup cron job;

…

---

<div class="post-metadata">

**Author:** ![ncmon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ncmon/32/11887_2.png) [@ncmon](https://forum.mautic.org/u/ncmon)\
**Post date:** [July 21, 2024, 12:29pm UTC](https://forum.mautic.org/t/mautic-and-vtiger-open-source-integration-error/32832/2 "2024-07-21T12:29:04Z")

</div>

Even if there’s no contacts on both sides the error persists when cron is executed;  
If decided to map fields then i made sure to populate vTiger’s Last name field as it’s mandatory;  
When testing in form action, it also doesn’t work and additional actions aren’t executed(like sending emails);

Does anyone managed to sync both sides in Mautic 5.1 and vTiger open source 8.2?

Log error:

[2024-07-21T12:21:03.763159+01:00] mautic.ERROR: TypeError: method\_exists(): Argument #1 ($object\_or\_class) must be of type object|string, bool given (uncaught exception) at /public\_html/app/bundles/PluginBundle/Command/PushLeadActivityCommand.php line 76 while running console command `mautic:integration:pushleadactivity` [stack trace] #0 /public\_html/app/bundles/PluginBundle/Command/PushLeadActivityCommand.php(76): method\_exists(false, ‘pushLeadActivit…’) #1/public\_html/vendor/symfony/console/Command/Command.php(298): Mautic\PluginBundle\Command\PushLeadActivityCommand-\>execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #2 /public\_html/vendor/symfony/console/Application.php(1058): Symfony\Component\Console\Command\Command-\>run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 /public\_html/vendor/symfony/framework-bundle/Console/Application.php(96): Symfony\Component\Console\Application-\>doRunCommand(Object(Mautic\PluginBundle\Command\PushLeadActivityCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4/public\_html/vendor/symfony/console/Application.php(301): Symfony\Bundle\FrameworkBundle\Console\Application-\>doRunCommand(Object(Mautic\PluginBundle\Command\PushLeadActivityCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5/public\_html/vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Component\Console\Application-\>doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /public\_html/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application-\>doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /public\_html/bin/console(16): Symfony\Component\Console\Application-\>run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 {main} {“hostname”:“xxxxxxxxxx”,“pid”:109223}  
[2024-07-21T12:21:03.767953+01:00] mautic.WARNING: Command `mautic:integration:pushleadactivity` exited with status code 1 {“hostname”:“xxxxxxxxxxx”,“pid”:109223}
