Either I’m completely missing something or there is a bug in the campaign workflow in 1.2.0. I can’t seem to find anything (documentation or tutorials) showing step-by-step to set up a campaign workflow for 1.2.
Here’s what I’m expecting…
User submits a campaign form via a landing page.
Lead gets added, increase their points and add them to a list.
Here’s what is happening…
The lead gets created but none of the campaign workflow is triggered.
Below is a screenshot of how I’ve got it set up—I’ve tried as many different combinations as I could think of but nothing is working
Either I’m completely missing something or there is a bug in the campaign workflow in 1.2.0. I can’t seem to find anything (documentation or tutorials) showing step-by-step to set up a campaign workflow for 1.2.
Here’s what I’m expecting…
User submits a campaign form via a landing page.
Lead gets added, increase their points and add them to a list.
Here’s what is happening…
The lead gets created but none of the campaign workflow is triggered.
Below is a screenshot of how I’ve got it set up—I’ve tried as many different combinations as I could think of but nothing is working
From your screen shot of the campaign, could you try to remove the “Submits Form” decision? The lead source is already that same form. Maybe Mautic now expects that a lead should submit a form twice (not sure really). But the “Campaign Forms” lead source should be enough to specify from what form the leads should go to the campaign.
Hey Zuno, don’t mean to hijack your discussion, but I think our problem is the same, so for the purpose of not duplicating it, here goes:
Escopecz: My cron jobs are setup correctly. I verified it and am getting Command run notification emails just fine.
Here is the content of an email i get as part of the cron reports: [quote]Rebuilding leads for campaign 2
There are no lists to rebuild from.
0 lead(s) affected[/quote]
I have tried it with and without the Submit Form decision. Still doesn’t seem to work. Maybe by the email report you see above, you might be able to tell us something to go by.
Could you try to create a standalone form (you can copy the campaign form and select to be standalone) than create a new lead list and at the form’s action tab create a new action to add the leads who submits that form to that new lead list.
In the campaign, use the lead list instead of the form. Does that work for you?
Hey…
Got it working
thanks Escopecz. Din’t try the one you mentioed, however the solution was to remove the Submit Form decision from the flow.
Although I had tried this one several times, this time it worked like a charm.
One little help, if I may ask of you? Digressing a bit from the original topic of discussion.
I have setup two email to be triggered when the form is submitted, one acknowledgement email to the lead and a notification email. But both emails go to the lead. How do I configure the notification email to come to me?
[quote=2926:@escopecz]Could you try to create a standalone form (you can copy the campaign form and select to be standalone) than create a new lead list and at the form’s action tab create a new action to add the leads who submits that form to that new lead list.
In the campaign, use the lead list instead of the form. Does that work for you?[/quote]
@escopecz , I’ve tried like you mentioned above but campaign keeps frozen. I’ve changed Cron Jobs to:
@Sokoban the frozen term is usually used for UI. Like “the campaign canvas is frozen and I cannot click on anything”. Do I understand it correctly that frozen in your case means that the events does not work when you test them?
If you have SSH access, could you log in and execute the command? What is the output?
@escopecz , the instructions at github do not tells how the PHP file must be named. Even changing file to cron.php I got same error message.
URL mydomain.com/cron.php?ILoveMauticReallyIDo loads fine but when I click any option = error.
@Sokoban I update the description for the commands.php script. Thanks for pointing that out.
Is the error still this?
Failed to start the session because headers have already been sent by "/home/myuser/public_html/funciona.php" at line 48.
If so, you’ll have to find out what is the file finciona.php doing there. I repeat, it’s not a Mautic file so it’s not a question for Mautic support forum.
I’m using BizzaHost just for testing Mautic. PHP file does not have any space before neither after.
On github script shows 71 lines. When I paste into PHP server’s file it shows 59 lines due to excluded blank lines.
So if you look at line 48 at github’s script = “}” and line 48 into my server = “echo ‘
Executing ’ . implode(’ ', $args) . ‘
’;”
I’ve downloaded commands.php from github and then uploaded to my server. Now error points to line 59:
Why would you remove the empty lines? What is in the /home/myuser/public_html/ folder? Are there files of Mautic? Is there anything else? WHAT IS THE funciona.php FILE?
It removed empty lines over paste command CTRL+V. I didn’t exclude anything. “funciona.php” was the name before I replaced to commands.php. Forget about funciona.php.
Here’s root’s image: