Incorrect access token parameters returned: Array

In mautic “pluginssystemmauticmauticApiHelper.php” function getMauticBaseUrl, this function is removing part of the URL see image below

screenshot-127.0.0.1 8081 2015-07-27 16-13-22.png



I changed it to:

//return trim($this->params->get(‘base_url’), ’ tnrx0B/’);

return trim($this->params->get(‘base_url’));



I am now recendo the following error on autorize:

Erro



Incorrect access token parameters returned: Array

In mautic “pluginssystemmauticmauticApiHelper.php” function getMauticBaseUrl, this function is removing part of the URL see image below

I changed it to:
//return trim($this->params->get(‘base_url’), ’ tnrx0B/’);
return trim($this->params->get(‘base_url’));

I am now recendo the following error on autorize:
Erro

Incorrect access token parameters returned: Array

Hi Widesys,

I know this is a really old post, but perhaps you or other user could still use a sollution.
For me this worked:
(Joomla setup with Mautic plugin)
Find file mautic.php in /plugins/system/mautic
Make a copy, just to be sure
Edit original en find code on line 102:
$mauticUrl = trim($this->params->get(‘base_url’), ‘tnrx0B/’);
Change to:
$mauticUrl = trim($this->params->get(‘base_url’), ’ nrx0B/’);

(so remove the t)

Hope this helps out!

ps: I am no expert at coding whatsover. I just tried this and it works.