No output when triggering the campaign manually

Your software
My Mautic version is: 2.15.3
My PHP version is: 7.3

Your problem
My campaign actions stayed in “Awaiting” status.

I’ve checked the crontab:
0,15,30,45 * * * * /usr/bin/php7.3-cli /homepages/14/d622144765/htdocs/mautic/app/console mautic:segments:update >/dev/null 2>&1
5,20,35,50 * * * * /usr/bin/php7.3-cli /homepages/14/d622144765/htdocs/mautic/app/console mautic:campaigns:update >/dev/null 2>&1
10,25,40,55 * * * * /usr/bin/php7.3-cli /homepages/14/d622144765/htdocs/mautic/app/console mautic:segments:trigger >/dev/null 2>&1
0 0 7 * * /usr/bin/php7.3-cli /homepages/14/d622144765/htdocs/mautic/app/console mautic:iplookup:download >/dev/null 2>&1

And executed the command manually:
/usr/bin/php7.3-cli /homepages/14/d622144765/htdocs/mautic/app/console mautic:campaigns:trigger --force -vvv
But nothing outputs ! :slightly_frowning_face:

But another command:
/usr/bin/php7.3-cli /homepages/14/d622149683/htdocs/mautic/app/console mautic:campaigns:validate
returns:
{0} 0 total events were executed|{1} 1 total event was executed|[2,Inf] 0 total events were executed

I went down this topic, to run Mautic commands from a PHP script:
When executing the mautic:campaigns:trigger command with the script, it works like a charm, with output :

Événements déclencheurs pour la campagne 1 
Déclenchement des événements pour les nouveaux contacts ajoutés
0 total events(s) to be processed in batches of 100 contacts
0 total events were executed
0 total events were scheduled

I’ve checked the CHMOD for file /app/console : -rwxr-xr-x

Can you please help me find out why the campaigns:trigger command doesn’t execute ?
(and outputs nothing)

Cheers !

1 Like