Mautic Community Forums

Salesforce integration dead after update to v4

Your software
My PHP version is : 7.4.26
My MariaDB version is (delete as applicable): 10.5.12

These errors are showing :

php /var/www/html/bin/console mautic:integration:fetchleads -i Salesforce
Command to fetch contacts from integration
Fetch contacts command is starting

In AbstractIntegration.php line 2007:
                                                                                                                              
  Typed property Mautic\PluginBundle\Integration\AbstractIntegration::$adminUsers must not be accessed before initialization  
                                                                                                                              

mautic:integration:fetchleads [-i|--integration INTEGRATION] [-d|--start-date START-DATE] [-t|--end-date END-DATE] [--fetch-all] [-a|--time-interval [TIME-INTERVAL]] [-l|--limit [LIMIT]] [-f|--force] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

Your problem
My problem is :
After updating to v4 the Salesforce integration stopped working (cf. example command above)
The frontend just shows an empty popup when opening the Salesforce plugin.

Fixed it by resetting the plugin (using the mysql monitor):

update plugin_integration_settings set is_published=0 where name='salesforce';
update plugin_integration_settings set api_keys="a:0:{}" where name='salesforce';

The plugin showed up again and I had to recreate credentials in Salesforce.