by eVolpe Consulting Group

Are you facing difficulties trying to coordinate efforts between marketing and sales? The SuiteCRM & Mautic Integrator by eVolpe is the best solution that will help you solve this issue. TRY IT NOW FOR FREE!

Free 30 day trial
Try it Now

SuiteCRM Mautic Authorization Issues

Problem:
I am stuck on Configuration Guide / SuiteCRM Plugin / Step 2: Connector configuration. Once I have entered all information and tried to click the "LINK" I get 404 error.

Probable Explanation:
There is an incorrect server configuration regarding Rewrite Rules and HTTP referer
RESOLUTIONS (for Linux Servers):
- For Ubuntu / Debian - check rewrite enabled**
SSH:

    apache2ctl -M | grep rewrite

If it returns:

    rewrite_module (shared)

go to next point, otherwise type:

    a2enmod rewrite

Output should be:

    Enabling module rewrite.

To activate the new configuration, you need to run:

    service apache2 restart

Output should be:

    * Restarting Apache httpd web server apache2     [ OK ]
  • Check if is set AllowOverride All for directory contains CRM and Mautic instances (e.g. /var/www/):**
    file: /etc/apache2/apache2.conf
    ...
    <Directory /var/www/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
    </Directory>
    ...
  • After CRM package installation, check if RewriteRule for Mautic get_token URL in .htaccess is set**
    file: < CRM_instance_directory >/.htaccess
    ...
    <IfModule mod_rewrite.c>
        Options +FollowSymLinks
        RewriteEngine On
        ...
        RewriteRule ^mautic/get_token index.php?entryPoint=MauticGetToken [L,QSA]
        ...
    </Ifodule>
    ...
  • Add Mautic URL and actions to whitelist in CRM config:**
    file: /config_override.php
    $sugar_config['http_referer']['list'][] = '<Mautic URL>';
    $sugar_config['http_referer']['actions'] = array( 'index', 'ListView', 'DetailView', 'EditView', 'oauth', 'authorize', 'Authenticate', 'Login', 'SupportPortal', 'UpgradeWizard' );
Saving Comment Saving Comment...