The WHMAutic module uses the Mautic API to synchronize clients between WHMCS and Mautic. To do so, it is necessary that the API and Basic Authentication of Mautic be active and working properly so that the module can access the endpoint of its Mautic installation.
To enable the API, go to Mautic and select the settings option by clicking on the wheel in the upper right corner.
In the left menu options, select API Settings, change to Yes API enabled? and Enable HTTP basic auth? options. Don't forgot to save changes.
To ensure that the Mautic API is operating correctly, you need to perform a cache cleanup after API activation. To do this run the following command through SSH in the installation directory of your Mautic:
php app/console cache:clear
If this command throws a PHP error, you can try to nuke the cache folder like this:
rm -rf app/cache
If you forgot to clear your Mautic cache your API will return a 404 error. This will cause the module to malfunction.
Found errors? Think you can improve this documentation? edit this page