Your software
My Mautic version is: 4.4.1
My PHP version is: 8.0
My Database type and version is: Mysql 8
Your problem
My problem is:
When trying to connect Zapier as a Mautic plugin via HTTP basic auth I get a 500 error.
When trying to connect Autonami (WP plugin) to Mautic via API I get a 500 error.
Wondering if these might be related or if I am doing something wrong
These errors are showing in the log:
1 Autonami WP plugin API connection to Mautic gets the following log:
CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “FOS\OAuthServerBundle\Controller\AuthorizeController::__construct(): Argument #5 ($tokenStorage) must be of type Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface, Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine given, called in /var/www/html/docroot/app/bundles/ApiBundle/Controller/oAuth2/AuthorizeController.php on line 82” at /var/www/html/vendor/friendsofsymfony/oauth-server-bundle/Controller/AuthorizeController.php line 106 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): FOS\OAuthServerBundle\Controller\AuthorizeController::__construct(): Argument #5 ($tokenStorage) must be of type Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface, Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine given, called in /var/www/html/docroot/app/bundles/ApiBundle/Controller/oAuth2/AuthorizeController.php on line 82 at /var/www/html/vendor/friendsofsymfony/oauth-server-bundle/Controller/AuthorizeController.php:106)”} {“hostname”:“localhost”,“pid”:75141}
Zapier Basic HTTP auth gets the following log:
CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The directory “/var/www/html/docroot/var/cache/prod/jms_serializer” is not writable.” at /var/www/html/vendor/jms/metadata/src/Cache/FileCache.php line 49 {“exception”:“[object] (InvalidArgumentException(code: 0): The directory "/var/www/html/docroot/var/cache/prod/jms_serializer" is not writable. at /var/www/html/vendor/jms/metadata/src/Cache/FileCache.php:49)”} {“hostname”:“localhost”,“pid”:92314}
Steps I have tried to fix the problem:
Clearing mautic cache, refresh database schema, restarting, recreating accounts for basic auth, recreating API endpoints for API.
Updating mautic from 3.x → 4.4, completley fresh build.
–
I am thinking of investigating my permissions more, but I’m new to mautic and I was hoping to meet the community and see if anyone could steer me in the right direction.
thanks!