# Troubleshooting Mautic 5.0.3 Upgrade: Sparkpost Plugin Issues and Character Escaping Errors

**URL:** <https://forum.mautic.org/t/troubleshooting-mautic-5-0-3-upgrade-sparkpost-plugin-issues-and-character-escaping-errors/30906>\
**Category:** Mautic 5 Install/Upgrade Support\
**Tags:** email, mautic-5\
**Created:** [February 15, 2024, 7:25pm UTC](https://forum.mautic.org/t/troubleshooting-mautic-5-0-3-upgrade-sparkpost-plugin-issues-and-character-escaping-errors/30906 "2024-02-15T19:25:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tacester](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tacester](https://forum.mautic.org/u/tacester)\
**Post date:** [February 15, 2024, 7:25pm UTC](https://forum.mautic.org/t/troubleshooting-mautic-5-0-3-upgrade-sparkpost-plugin-issues-and-character-escaping-errors/30906/1 "2024-02-15T19:25:58Z")

</div>

**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](https://github.com/ts-navghane/sparkpost-plugin)). 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… {{&#38;#38;#34;options … and just gets longer and longer.

![chrome_2024-02-16_06-20-18](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/ec7a6a1a0112dd4503e7586649e191176c8e384a.png)

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.

---

_[View the full topic](https://forum.mautic.org/t/troubleshooting-mautic-5-0-3-upgrade-sparkpost-plugin-issues-and-character-escaping-errors/30906)._
