Your software
My Mautic version is: 5.0.1
My PHP version is: 8.0.28
My Database type and version is: MySQL 8.0.35
Your problem
My problem is:
After upgrade from 4.4.10 → 5.0.1 I’m getting red offline error message (see screenshot below) in the browser along with the ‘parameter x must be defined’ error(s) when running commands such as (doctrine:migrations:migrate) via CLI.
I am currently running 4.4.10 again (restored from backup).
*Had no problem upgrading from 2 → 3 and from 3 → 4 with all the intermediate stable version upgrades.
@rcheesley He did. Just boiled down to the relevant part. (In fact, the log isn’t getting any more useful in this particular case)
The config migration messed up your config. If you search for parameter yyyy you’ll find it in your local.php under the mailer_dsn key. That’s causing the issue.
To get your backend running again:
open local.php
look for 'mailer_dsn' => 'mautic.transport.
comment that out
flush cache
Your backend should work now. BUT: Your email transport is not configured. You need to do that.
To be fully transparent: I attempted to incorporate the proposed fix into my 5.0.1 installation, but it was still broken after I tried it. My day job is NOT in computer science, so I assumed it was a break based on my ignorance of the appropriate procedure. Now that 5.0.2 has been released, I tried again with it, and it worked for me. Specifically, my workflow was:
So I noticed a 4.4.11 upgrade recently…
Performed the upgrade…
Upgrade from 4.4.10 to 4.4.11 went by smoothly it seems.
Now 5.0.2 is available again.
Should I take the risk and upgrade?
I had a nightmare trying to get Amazon SES to work after an upgrade to 5.0.2
The upgrade resulted in a broken setup due to the migrated mailer_dsn containing %…%, had to remove the mailer_dsn line from local.php
I installed symfony/amazon-mailer, but it gave an unrecognised schema error in the config page. You need to install a specific version - “composer require symfony/amazon-mailer=5.3 -W”
Pasting in the password to the email config page leaves the cute little lock emoji in the field by default, resulting in the wrong password being saved. Make sure you clear the lock (why is not a placeholder attribute?)
Anyway, I now have Mautic 5.0.2 running with Amazon SES, but it seemed to be much harder than it needed to be
But does this symfony amazon mailer properly handle bulk sending. There is a reason why mautic has dedicated transports to integrate with different email providers and its because using default mailer packages makes separate request to an api for each message.
For our usage I expect the standard symfony Amazon SES integration with an API call per message will be performant enough (We can always look to move to a queuing later if needed).
For others moving to the new mailer integration in Mautic 5 may be more of an issue. We just wanted it to be able to work at all