Upgrading PHP from 8.1 to 8.2 in Mautic Docker Image for SendGrid Plugin

Your software
My Mautic version is: 5.2.4
My PHP version is: 8.1
My Database type and version is: 10.6.21-MariaDB-ubu2004

Your problem
My problem is:

Hello everyone,

I’m currently migrating my legacy system (Mautic 4.4.13) to a fresh Mautic installation (5.2.4). I installed it without any issues using a Docker image. However, I noticed there isn’t a native plugin for integration with the SendGrid API.

While looking through the forum, I found a recommendation for the “sendgrid+api” plugin, but it requires PHP 8.2. The Docker image I used installed PHP version 8.1.

My question is: what’s the best way to handle this situation?

  • Can I update to PHP 8.2 without breaking the existing installation?

  • Or is there another way to connect to SendGrid via API?

Thanks in advance for your help! :slight_smile:

I can’t answer on Sendgrid plugin as I am new to Mautic but I would suggest not to use PHP 8.1 for a new system install right now since it is out of security support.

I see that the official Mautic docker for 5.2.7 uses PHP 8.3 at the moment.

https://hub.docker.com/layers/mautic/mautic/5.2.7-fpm/images/sha256-626aab53e533703b1f933c68fc962a7c370a46cfbf83ba6fca6805945675e70f

  1. So if restarting your migration is possible then I would get a newer Docker image and work with that starting right away.

  2. If it’s not possible or easy to restart that right now then I would probably try this:

  • Take a backup/screenshot of your Sendgrid settings as needed
  • Uninstall or deactivate the old plugin
  • Continue the migration
  • When done, update to PHP 8.3 and the latest Mautic 5.2 series, eg. 5.2.7 as of today
  • Install the new plugin and update the settings - unlike your data that needs migration there are only a handful of settings to re-enter.
1 Like