Campaign Stat does not work

Your software
My Mautic version is: v4.4.10
My PHP version is: php8.0.28
My Database type and version is: 10.4.17-MariaDB

Your problem
My problem is: campaign works smoothly, but data in tabs ‘Disicion’, ‘Aciton’ are still zero.

These errors are showing in the log: I found nothing in log.

Steps I have tried to fix the problem: I check cronjob of Mautic. They are:

          • php /bin/console mautic:campaigns:update
          • php /bin/console mautic:segments:update
          • php /bin/console mautic:campaigns:trigger
          • php /bin/console mautic:emails:send
            Cronjob work ok. All campaign, email, point, segment work ok. But only stat data in campaign still zero.

Thanks for your help.


1 Like

Hi,
This cronjob is not really okay:

* * * * * php /bin/console mautic:campaigns:update

You need to give the full path, depending on the installation, like

(example)
* * * * * php /var/www/html/mautic/bin/console mautic:campaigns:update

Might happen, that your php also needs path, like

/bin/php /var/www/html/mautic/bin/console mautic:campaigns:update

Joey

1 Like

Thanks for your help. I change all cronjob like these:

php /home/vigvn/domains/vig-vn.com/public_html/em/bin/console mautic:campaigns:update
php /home/vigvn/domains/vig-vn.com/public_html/em/bin/console mautic:segments:update
php /home/vigvn/domains/vig-vn.com/public_html/em/bin/console mautic:campaigns:trigger
php /home/vigvn/domains/vig-vn.com/public_html/em/bin/console mautic:emails:send
php /home/vigvn/domains/vig-vn.com/public_html/em/bin/console mautic:email:fetch
php /home/vigvn/domains/vig-vn.com/public_html/em/bin/console mautic:social:monitoring
php /home/vigvn/domains/vig-vn.com/public_html/em/bin/console mautic:import
php /home/vigvn/domains/vig-vn.com/public_html/em/bin/console mautic:webhooks:process

I also test them in ssh. They are work. But data are still 0.

Did you add the little stars in the front?

          • COMMAND HERE