# Campaign Stat does not work

**URL:** <https://forum.mautic.org/t/campaign-stat-does-not-work/29849>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [November 7, 2023, 4:05am UTC](https://forum.mautic.org/t/campaign-stat-does-not-work/29849 "2023-11-07T04:05:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moriator](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/moriator/32/10811_2.png) [@moriator](https://forum.mautic.org/u/moriator)\
**Post date:** [November 7, 2023, 4:05am UTC](https://forum.mautic.org/t/campaign-stat-does-not-work/29849/1 "2023-11-07T04:05:32Z")

</div>

**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.

 ![Screen Shot 2023-11-07 at 11.04.45](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0e64121174c9d38ce67227f9fc0b9e6882784a6a.png)  
 ![Screen Shot 2023-11-07 at 11.04.53](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cb1867fae55a46412dcd9e90d608445032a62975.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [November 7, 2023, 8:28am UTC](https://forum.mautic.org/t/campaign-stat-does-not-work/29849/2 "2023-11-07T08:28:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![moriator](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/moriator/32/10811_2.png) [@moriator](https://forum.mautic.org/u/moriator)\
**Post date:** [November 7, 2023, 1:08pm UTC](https://forum.mautic.org/t/campaign-stat-does-not-work/29849/3 "2023-11-07T13:08:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [November 8, 2023, 4:23pm UTC](https://forum.mautic.org/t/campaign-stat-does-not-work/29849/4 "2023-11-08T16:23:48Z")

</div>

Did you add the little stars in the front?

- 
  - 
    - 
      - 
        - COMMAND HERE
