Your software
My Mautic version is: 5.0.3
My PHP version is: 8.0.30
My Database type and version is: MySQL 8.0.33
Your problem
My problem is:
I recently upgraded from Mautic 4.4.10 to 5.0.3 and am attempting to use the Sparkpost plugin (GitHub - ts-navghane/sparkpost-plugin: Sparkpost Mailer Plugin for Mautic). I ran into a number of issues the first being a fatal php error thrown while running cache:clear (and presumably other console commands). I managed to resolve this by running “composer install --no-dev --optimize-autoloader” (I have no idea if this has caused other issues), after which the plugin seems to be installed. However, trying to send a test email I keep receiving the error “[{“message”:“No sending domain specified”,“code”:“7001”}]” even though my “Email address to send mail from” is set correctly.
Further more, and likely unrelated, as part of my sparkpost configuration I have custom email headers set and everytime I save the config my custom email header values are character escaped malforming my configuration. For example my json string which is supposed to take the form {{“options”: { "… is being escaped everytime I save the config… {{"options … and just gets longer and longer.
These errors are showing in the log:
php.CRITICAL: Fatal Error: During class fetch: Uncaught ReflectionException: Class “Liip\TestFixturesBundle\Test\FixturesTrait” not found while loading “MauticPlugin\SparkpostBundle\Tests\Functional\EventSubscriber\CallbackSubscriberTest”.
Steps I have tried to fix the problem:
Running this command…
composer install --no-dev --optimize-autoloader
… seems to resolve the fatal php error, but it also removes a bunch of testing packages that I am not sure will cause issues elsewhere.
Any help would be greatly appreciated.