Contacts still in campaign after removal

Your software
My Mautic version is: 2.16.2
My PHP version is: 5.6 (tried 7.2 but cron jobs do not execute)

Your problem
My problem is: Cannot remove contacts from campaign. Contact still receive future emails

These errors are showing in the log: No errors in the logs.

Steps I have tried to fix the problem:
Create a campaign with two branches… one for detection of site visit (calendy booking)…Calendy booking is detected OK in Mautic and I add “Leave this Campaign”, “Move Segment” and “Move to other stage”… all events are detected in the Contact details…segment is changed and stage is changed…
“Leave this Campaign” also appears in the Contact log, however…:
Contact still receives future emails
Contact still appears in Campaign - Contacts panel.

Thanks for your support!

Alejandro.-

Hello,

Issue still exists in version 2.16.2 I’m using (PHP 7.3).

and looks related or a Regression of BUG #6407 : 'Change Campaigns" action not removing contact from “this” campaign #6407

Repro:
Create a Campaign (origin based in Segment)
Add test user (contact) to campaign
Contact visits URL to trigger actions like: Change Stage, Move Segment and Exit Campaign (all these events are recognised OK in the Contact history)
Contact details shows events triggered for removal…
BUT:
Campaign - Details - Contacts: still shows contact listed in the campaign
&
Contact - Upcoming Events still shows future events (future emails are sent, despite the contact already was removed from the campaign).

My troubleshooting:
I put a Condition (Condition based on a contact segments TYPE) before every single email sent in the campaign checking if the Contact was in the campaign.

Thanks,

Alejandro.-