Found a bug (including fix) - Can't unsubscribe

Your software
My Mautic version is: 5.1.0 Andromeda
My PHP version is: 8.3.10
My Database type and version is: Mysql 9.0.1

Your problem
My problem is:
I’ve created a contact, added them to a segment, and sent a campaign to this contact. The email is received correctly, and everything looks good. However, when I click on the unsubscribe link in the email, I encounter the following error message:

These errors are showing in the log:
As far is I know there is no error in the logs

Steps I have tried to fix the problem:
When I delete everything in the url expect the first ID (so you get http://localhost:8000/email/unsubscribe/66cc6bc462a5e505915798) then it works.

How to fix this. Is this a bug and do I need to adjust the code or is this something in my configuration?

Thanks a lot!

1 Like

Might be your setup.

Can you share the token you used in the email for unsubscribe? The whole line of code including the A tag and text.

Thanks for your help.

I re-installed Mautic using Docker and now everything works fine.

Btw, I used this tutorial: How to install Mautic with Docker on Digital Ocean - Mautic Knowledgebase, and I made some adjustments to certain steps.

Everything is working well now!