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

**URL:** https://forum.mautic.org/t/found-a-bug-including-fix-cant-unsubscribe/33259
**Category:** Product Support
**Created:** [August 26, 2024, 4:08pm UTC](https://forum.mautic.org/t/found-a-bug-including-fix-cant-unsubscribe/33259 "2024-08-26T16:08:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![browserflow](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/browserflow/32/12583_2.png) [@browserflow](https://forum.mautic.org/u/browserflow)
#### Post date: [August 26, 2024, 4:08pm UTC](https://forum.mautic.org/t/found-a-bug-including-fix-cant-unsubscribe/33259/1 "2024-08-26T16:08:36Z")

</div>

**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:

 ![erroir](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/6038ad484e1943739bece1332054878927fee39c.png)

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](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!

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [August 30, 2024, 6:09am UTC](https://forum.mautic.org/t/found-a-bug-including-fix-cant-unsubscribe/33259/2 "2024-08-30T06:09:13Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![browserflow](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/browserflow/32/12583_2.png) [@browserflow](https://forum.mautic.org/u/browserflow)
#### Post date: [October 26, 2024, 11:49am UTC](https://forum.mautic.org/t/found-a-bug-including-fix-cant-unsubscribe/33259/3 "2024-10-26T11:49:14Z")

</div>

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](https://kb.mautic.org/article/how-to-install-mautic-with-docker-on-digital-ocean.html), and I made some adjustments to certain steps.

Everything is working well now!
