New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration to M5 breaks Mautic if mailer password contains special chars #13236
Comments
seems somehow be related to #12256 ? |
I suspect it's only tangential. I see it as:
|
@putzwasser @dsp76 this is indeed a bug, the value is incorrectly stored if any propery of the dsn contains a special character. I'll create an MR to address this. |
@putzwasser @dsp76 it's indeed a different issue. I fixed the migration issue in #13256, can you test this out? |
@mollux Happy to, but, currently, I have no instance that I could try this out on. When M5 fully supports SES, etc. I can update another instance. Then I can report back on this. |
If you're certain that |
This issue has been mentioned on Mautic Forums. There might be relevant details there: https://forum.mautic.org/t/upgrade-from-mautic-4-4-11-5-0-2-problem/30602/1 |
#13256 fixes this, I guess. |
|
Mautic Version
5.0.x series
PHP version
8.1
What browsers are you seeing the problem on?
Not relevant
What happened?
Updating from M4 to M5 the update script creates the
mailer_dsn
config key for you.There is a bug in converting special chars properly:
sometring/SOMEotherSTRING
.sometring&2FSOMEotherSTRING
, i.e.,urlencode
it.The resulting
config/local.php
holds now a faultymailer_dsn
:This will lead to the following critical PHP error:
Or in the logs:
The single ampersand in the
mailer_dsn
config key leads Mautic/Symfony to believe there is a parameter that is not defined, hence the error.The hotfix after updating is commenting out the config key
mailer_dsn
inlocal.php
and re-configure your mailer.How can we reproduce this issue?
bin/console
or try to access the dashboard.Relevant log output
No response
Code of Conduct
Care about this issue? Want to get it resolved sooner? If you are a member of Mautic, you can add some funds to the Bounties Project so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs here.
The text was updated successfully, but these errors were encountered: