# Campaign flow doesn't complete

**URL:** <https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833>\
**Category:** Product Support\
**Created:** [April 9, 2020, 11:15am UTC](https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833 "2020-04-09T11:15:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcink](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/marcink/32/2157_2.png) [@marcink](https://forum.mautic.org/u/marcink)\
**Post date:** [April 9, 2020, 11:15am UTC](https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833/1 "2020-04-09T11:15:28Z")

</div>

**Your software**  
My Mautic version is: 2.16.1  
My PHP version is: 7.2.24

**Your problem**  
My problem is: The campaign is processed partially. It stops after sending an e-mail and after user clicks the link doesn’t update the segment of contact.

 ![obraz](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/22e7b1e1f09966d11dafe728e4aa59a68bbef5ef.png)

IfConfirmationPageOpened is the failing step.

 ![obraz](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/bd8113c048b796d1ea822f7a9917ac95734bf356.png)  
 ![obraz](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/d9528608a98ca9441b9b4c5fc0f562117835acdb.png)  
 ![obraz](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5e9087b32fb87d35e6490fa3f3b56150def71a5f.png)  
 ![obraz](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/ac99e9fda6152841fb683c20393b959813558e61.png)

These errors are showing in the log: (it’s the last log entry since 4h)  
[2020-04-09 09:24:30] mautic.NOTICE: PHP Notice - Undefined index: eventType - in file /home/kfam/domains/mailing.kfam.pl/public\_html/app/bundles/CampaignBundle/Controller/EventController.php - at line 257 {“objectId”:“9”,“session”:"[object] (Symfony\Component\HttpFoundation\Session\Session: {})",“valid”:false,“cancelled”:false,“method”:“GET”,“campaignId”:“2”,“modifiedEvents”:{“new1”:{“id”:“new1”,“name”:“FormSubmitted”,“description”:null,“type”:“form.submit”,“eventType”:“decision”,“order”:1,“properties”:{“id”:6,“name”:“FormSubmitted”,“description”:null,“type”:“form.submit”,“eventType”:“decision”,“order”:1,“properties”:{“forms”:[“1”]},“triggerDate”:null,“triggerInterval”:0,“triggerIntervalUnit”:null,“triggerHour”:null,“triggerRestrictedStartHour”:null,“triggerRestrictedStopHour”:null,“triggerRestrictedDaysOfWeek”:,“triggerMode”:null,“decisionPath”:null,“tempId”:“new1”,“contactLog”:,“channel”:null,“channelId”:0,“changes”:null,“anchor”:“leadsource”,“anchorEventType”:“source”,“canvasSettings”:{“droppedX”:“713”,“droppedY”:“155”},“campaignId”:“mautic\_1c8d6214b8b17e769bd3553303c043b4301b3b33”,"\_token":“QhTANNvPHAfaQc5uHYQ-3FSMrZfnDbeoEoN0eLqAf0Q”,“buttons”:{“save”:""},“forms”:[2]},“triggerDate”:null,“triggerInterval”:0,“triggerIntervalUnit”:null,“triggerHour”:null,“triggerRestrictedStartHour”:null,“triggerRestrictedStopHour”:null,“triggerRestrictedDaysOfWeek”:,“triggerMode”:null,“decisionPath”:null,“tempId”:“new1”,“contactLog”:,“channel”:null,“channelId”:0,“changes”:null},“new2”:{“id”:“new2”,“name”:“SignInPending”,“description”:null,“type”:“lead.changelist”,“eventType”:“action”,“order”:2,“properties”:{“id”:2,“name”:“SignInPending”,“description”:null,“type”:“lead.changelist”,“eventType”:“action”,“order”:2,“properties”:{“addToLists”:[“1”]},“triggerDate”:null,“triggerInterval”:“1”,“triggerIntervalUnit”:“d”,“triggerHour”:"",“triggerRestrictedStartHour”:"",“triggerRestrictedStopHour”:"",“triggerRestrictedDaysOfWeek”:,“triggerMode”:“immediate”,“decisionPath”:“yes”,“tempId”:“new4aac117b6e6df436a54e61e0758d367c195b5fff”,“contactLog”:,“channel”:null,“channelId”:0,“changes”:null,“anchor”:“yes”,“anchorEventType”:“decision”,“settings”:{“label”:“Modify contact’s segments”,“description”:“Add contact to or remove contact from segment(s)”,“formType”:“leadlist\_action”,“eventName”:“mautic.lead.on\_campaign\_trigger\_action”},“canvasSettings”:{“droppedX”:“613”,“droppedY”:“260”},“campaignId”:“mautic\_1c8d6214b8b17e769bd3553303c043b4301b3b33”,"\_token":“QhTANNvPHAfaQc5uHYQ-3FSMrZfnDbeoEoN0eLqAf0Q”,“buttons”:{“save”:""},“addToLists”:[1],“removeFromLists”:},“triggerDate”:null,“triggerInterval”:1,“triggerIntervalUnit”:“d”,“triggerHour”:null,“triggerRestrictedStartHour”:null,“triggerRestrictedStopHour”:null,“triggerRestrictedDaysOfWeek”:,“triggerMode”:“immediate”,“decisionPath”:“yes”,“tempId”:“new2”,“contactLog”:,“channel”:null,“channelId”:0,“changes”:null},“new3”:{“id”:“new3”,“name”:“SendConfirmationEmail”,“description”:null,“type”:“email.send”,“eventType”:“action”,“order”:3,“properties”:{“id”:“newccb3295c7a2f408dab3efda4ebd532084e56c4fe”,“name”:“SendConfirmationEmail”,“description”:null,“type”:“email.send”,“eventType”:“action”,“order”:2,“properties”:{“email”:“1”,“email\_type”:“transactional”,“priority”:“2”,“attempts”:“3”},“triggerDate”:null,“triggerInterval”:“5”,“triggerIntervalUnit”:“i”,“triggerHour”:"",“triggerRestrictedStartHour”:"",“triggerRestrictedStopHour”:"",“triggerRestrictedDaysOfWeek”:,“triggerMode”:“interval”,“decisionPath”:“no”,“tempId”:“newccb3295c7a2f408dab3efda4ebd532084e56c4fe”,“contactLog”:,“channel”:“email”,“channelId”:1,“changes”:null,“label”:“within 1 minute”,“anchor”:“no”,“anchorEventType”:“decision”,“settings”:{“label”:“Send email”,“description”:“Send the selected email to the contact.”,“batchEventName”:“mautic.email.on\_campaign\_batch\_action”,“formType”:“emailsend\_list”,“formTypeOptions”:{“update\_select”:“campaignevent\_properties\_email”,“with\_email\_types”:true},“formTheme”:“MauticEmailBundle:FormTheme\EmailSendList”,“channel”:“email”,“channelIdField”:“email”},“canvasSettings”:{“droppedX”:“853”,“droppedY”:“260”},“campaignId”:“mautic\_1c8d6214b8b17e769bd3553303c043b4301b3b33”,"\_token":“QhTANNvPHAfaQc5uHYQ-3FSMrZfnDbeoEoN0eLqAf0Q”,“buttons”:{“save”:""},“email”:“1”,“email\_type”:“transactional”,“priority”:2,“attempts”:3},“triggerDate”:null,“triggerInterval”:1,“triggerIntervalUnit”:“i”,“triggerHour”:null,“triggerRestrictedStartHour”:null,“triggerRestrictedStopHour”:null,“triggerRestrictedDaysOfWeek”:,“triggerMode”:“interval”,“decisionPath”:null,“tempId”:“new3”,“contactLog”:,“channel”:“email”,“channelId”:1,“changes”:null,“label”:“wait 1 minute”},“new4”:{“id”:“new4”,“name”:“IfConfirmationPageOpened”,“description”:null,“type”:“page.pagehit”,“eventType”:“decision”,“order”:4,“properties”:{“canvasSettings”:{“droppedX”:“853”,“droppedY”:“365”},“name”:“IfConfirmationPageOpened”,“anchor”:“bottom”,“properties”:{“pages”:[“2”],“url”:"",“referer”:""},“type”:“page.pagehit”,“eventType”:“decision”,“anchorEventType”:“action”,“campaignId”:“mautic\_1c8d6214b8b17e769bd3553303c043b4301b3b33”,"\_token":“QhTANNvPHAfaQc5uHYQ-3FSMrZfnDbeoEoN0eLqAf0Q”,“buttons”:{“save”:""},“triggerDate”:null,“pages”:[2],“url”:null,“referer”:null},“triggerDate”:null,“triggerInterval”:0,“triggerIntervalUnit”:null,“triggerHour”:null,“triggerRestrictedStartHour”:null,“triggerRestrictedStopHour”:null,“triggerRestrictedDaysOfWeek”:,“triggerMode”:null,“decisionPath”:null,“tempId”:“new4”,“contactLog”:,“channel”:“page”,“channelId”:2,“changes”:null},“new5”:{“id”:“new5”,“name”:“MoveToConfirmed”,“description”:null,“type”:“lead.changelist”,“eventType”:“action”,“order”:5,“properties”:{“id”:10,“name”:“MoveToConfirmed”,“description”:null,“type”:“lead.changelist”,“eventType”:“action”,“order”:5,“properties”:{“addToLists”:[“1”],“removeFromLists”:[“2”]},“triggerDate”:null,“triggerInterval”:“1”,“triggerIntervalUnit”:“d”,“triggerHour”:"",“triggerRestrictedStartHour”:"",“triggerRestrictedStopHour”:"",“triggerRestrictedDaysOfWeek”:,“triggerMode”:“immediate”,“decisionPath”:“yes”,“tempId”:“new5”,“contactLog”:,“channel”:null,“channelId”:0,“changes”:null,“anchor”:“yes”,“anchorEventType”:“decision”,“settings”:{“label”:“Modify contact’s segments”,“description”:“Add contact to or remove contact from segment(s)”,“formType”:“leadlist\_action”,“eventName”:“mautic.lead.on\_campaign\_trigger\_action”},“canvasSettings”:{“droppedX”:“753”,“droppedY”:“470”},“campaignId”:“mautic\_1c8d6214b8b17e769bd3553303c043b4301b3b33”,"\_token":“QhTANNvPHAfaQc5uHYQ-3FSMrZfnDbeoEoN0eLqAf0Q”,“buttons”:{“save”:""},“addToLists”:[2],“removeFromLists”:[1]},“triggerDate”:null,“triggerInterval”:1,“triggerIntervalUnit”:“d”,“triggerHour”:null,“triggerRestrictedStartHour”:null,“triggerRestrictedStopHour”:null,“triggerRestrictedDaysOfWeek”:,“triggerMode”:“immediate”,“decisionPath”:“yes”,“tempId”:“new5”,“contactLog”:,“channel”:null,“channelId”:0,“changes”:null},“newc4faf4de811e00e06f1edcd4a262993f1a816d40”:{“id”:“newc4faf4de811e00e06f1edcd4a262993f1a816d40”,“name”:“PrivacyConsent”,“description”:null,“type”:“lead.updatelead”,“eventType”:“action”,“order”:6,“properties”:{“canvasSettings”:{“droppedX”:“753”,“droppedY”:“575”},“name”:“PrivacyConsent”,“triggerMode”:“immediate”,“triggerDate”:null,“triggerInterval”:“1”,“triggerIntervalUnit”:“d”,“triggerHour”:"",“triggerRestrictedStartHour”:"",“triggerRestrictedStopHour”:"",“anchor”:“bottom”,“properties”:{“privacypolicy”:“1”,“title”:"",“firstname”:"",“lastname”:"",“company”:"",“position”:"",“email”:"",“mobile”:"",“phone”:"",“points”:"",“fax”:"",“address1”:"",“address2”:"",“city”:"",“state”:"",“zipcode”:"",“country”:"",“preferred\_locale”:"",“timezone”:"",“last\_active”:"",“attribution\_date”:"",“attribution”:"",“website”:"",“facebook”:"",“foursquare”:"",“googleplus”:"",“instagram”:"",“linkedin”:"",“skype”:"",“twitter”:""},“type”:“lead.updatelead”,“eventType”:“action”,“anchorEventType”:“action”,“campaignId”:“2”,"\_token":“QhTANNvPHAfaQc5uHYQ-3FSMrZfnDbeoEoN0eLqAf0Q”,“buttons”:{“save”:""},“privacypolicy”:1,“title”:null,“firstname”:null,“lastname”:null,“company”:null,“position”:null,“email”:null,“mobile”:null,“phone”:null,“points”:null,“fax”:null,“address1”:null,“address2”:null,“city”:null,“state”:null,“zipcode”:null,“country”:null,“preferred\_locale”:null,“timezone”:null,“last\_active”:"",“attribution\_date”:"",“attribution”:null,“website”:null,“facebook”:null,“foursquare”:null,“googleplus”:null,“instagram”:null,“linkedin”:null,“skype”:null,“twitter”:null},“triggerDate”:null,“triggerInterval”:1,“triggerIntervalUnit”:“d”,“triggerHour”:null,“triggerRestrictedStartHour”:null,“triggerRestrictedStopHour”:null,“triggerRestrictedDaysOfWeek”:,“triggerMode”:“immediate”,“decisionPath”:null,“tempId”:“newc4faf4de811e00e06f1edcd4a262993f1a816d40”,“contactLog”:,“channel”:null,“channelId”:0,“changes”:null},“newc604e6f5ec957197d4e885189b1d8605c0462333”:{“id”:“newc604e6f5ec957197d4e885189b1d8605c0462333”,“name”:“Add tag”,“description”:null,“type”:“lead.changetags”,“eventType”:“action”,“order”:6,“properties”:{“canvasSettings”:{“droppedX”:“753”,“droppedY”:“680”},“name”:“Add tag”,“triggerMode”:“immediate”,“triggerDate”:null,“triggerInterval”:“1”,“triggerIntervalUnit”:“d”,“triggerHour”:"",“triggerRestrictedStartHour”:"",“triggerRestrictedStopHour”:"",“anchor”:“bottom”,“properties”:{“add\_tags”:[“1”]},“type”:“lead.changetags”,“eventType”:“action”,“anchorEventType”:“action”,“campaignId”:“2”,"\_token":“QhTANNvPHAfaQc5uHYQ-3FSMrZfnDbeoEoN0eLqAf0Q”,“buttons”:{“save”:""},“add\_tags”:[“Confirmed”],“remove\_tags”:},“triggerDate”:null,“triggerInterval”:1,“triggerIntervalUnit”:“d”,“triggerHour”:null,“triggerRestrictedStartHour”:null,“triggerRestrictedStopHour”:null,“triggerRestrictedDaysOfWeek”:,“triggerMode”:“immediate”,“decisionPath”:null,“tempId”:“newc604e6f5ec957197d4e885189b1d8605c0462333”,“contactLog”:,“channel”:null,“channelId”:0,“changes”:null}},“event”:{“anchor”:“bottom”,“anchorEventType”:“action”}}

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [April 9, 2020, 12:11pm UTC](https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833/2 "2020-04-09T12:11:09Z")

</div>

Hi Marcin,

it seems like the “Visits a page” decision is not recognized. Not sure why, but you may simply try to circumvent that by testing for the URL instead of the Landing Page.  
(If that turns out to help, please let me know - I’d like to make that there is not something fundamentally broken!)

Side note: Here’s a waterproof process that avoids any “wait 1 minute” etc. hacks 😉 [https://www.leuchtfeuer.com/en/mautic-know-how/mautic/perfect-double-opt-in/](https://www.leuchtfeuer.com/en/mautic-know-how/mautic/perfect-double-opt-in/)

Cheers  
Ekke

* * *

_Subscribe to the **Mautic Podcast** at [www.Mauticast.com](http://www.Mauticast.com) - and let us know what topics or interviews you would like to hear!_  
_(German version at [www.Mauticast.de](http://www.Mauticast.de))_

---

<div class="post-metadata">

**Author:** ![marcink](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/marcink/32/2157_2.png) [@marcink](https://forum.mautic.org/u/marcink)\
**Post date:** [April 9, 2020, 1:07pm UTC](https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833/3 "2020-04-09T13:07:12Z")

</div>

Thanks Ekke  
By circumvent you mean to input the URL directly not by LP?  
 ![obraz](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/42fdde43c250274053e662304fe970b0b26dd314.png)

> [@ekke](#):
>
> circumvent that by testing for the URL instead of the Landing Page.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [April 9, 2020, 1:32pm UTC](https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833/4 "2020-04-09T13:32:13Z")

</div>

yep, no “Limit to Pages” and also no “Referrer”, just the “URL”

* * *

_Subscribe to the **Mautic Podcast** at [www.Mauticast.com](http://www.Mauticast.com) - and let me know what topics or interviews you would like to hear!_  
_(German version at [www.Mauticast.de](http://www.Mauticast.de))_

---

<div class="post-metadata">

**Author:** ![marcink](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/marcink/32/2157_2.png) [@marcink](https://forum.mautic.org/u/marcink)\
**Post date:** [April 9, 2020, 7:08pm UTC](https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833/5 "2020-04-09T19:08:23Z")

</div>

didn’t worked out 😕  
I also recreated the campaign according to your linked instruction but it also don’t run  
Is there a way to chec/debug the campaigns?  
Almost all states are in Pending like it is not triggering correctly…

---

<div class="post-metadata">

**Author:** ![marcink](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/marcink/32/2157_2.png) [@marcink](https://forum.mautic.org/u/marcink)\
**Post date:** [April 11, 2020, 10:34am UTC](https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833/6 "2020-04-11T10:34:49Z")

</div>

I think there is also a problem with the link to set up the tag after visiting the page.

> **[The Perfect Double Opt-In](https://www.leuchtfeuer.com/en/mautic-know-how/mautic/perfect-double-opt-in/)**
>
> Double Opt-In (DOI) is annoying, but mostly considered necessary - and thus should at least work smoothly. In fact, it takes this little trick to achieve just that!

my mautic is under [https://mailtrain.kfam.eu/mailing/index.php](https://mailtrain.kfam.eu/mailing/index.php) and the link I’ve put in the code mode block is:  
[https://mailtrain.kfam.eu/mailing/index.php/](https://mailtrain.kfam.eu/mailing/index.php/)

![Tag](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2a9fa3661b326c503e492b89cdd9130d12ead03d.gif)  
Unfortunately the tag is not updated inside the contact, and the campaign queues the contact as pending to resend the confirmation link again

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [April 14, 2020, 3:24pm UTC](https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833/7 "2020-04-14T15:24:23Z")

</div>

_For the records: Issue could be resolved in direct communication; reasons were in basic campaign setup._

---

<div class="post-metadata">

**Author:** ![iamisearojob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/iamisearojob/32/2197_2.png) [@iamisearojob](https://forum.mautic.org/u/iamisearojob)\
**Post date:** [April 25, 2020, 8:24am UTC](https://forum.mautic.org/t/campaign-flow-doesnt-complete/13833/8 "2020-04-25T08:24:42Z")

</div>

It’s working i actually tested it and using it for my campaigns now  
Although i had another solution myself but using tag as in the link share [here](https://www.leuchtfeuer.com/en/mautic-know-how/mautic/perfect-double-opt-in/) works so well and fast.  
First, ensure your campaign crons are executing if not and you still have this problem message I will help you fix it personally
