# Segment not working - tags help!

**URL:** <https://forum.mautic.org/t/segment-not-working-tags-help/18503>\
**Category:** Product Support\
**Created:** [March 9, 2021, 8:25pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503 "2021-03-09T20:25:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoniodap](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/antoniodap/32/494_2.png) [@antoniodap](https://forum.mautic.org/u/antoniodap)\
**Post date:** [March 9, 2021, 8:25pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/1 "2021-03-09T20:25:34Z")

</div>

**Your software**  
My Mautic version is: 3.0  
My PHP version is: 7.4.3  
My Database type and version is:

My problem is: Hi guys I have been searching google and the forum for several hours for a solution.  
I don’t understand why when I create a segment it doesn’t find any tags.  
It seems to be a cron problem.  
But the cron is set as your guide.  
Can I ask for some help?

---

<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:** [March 10, 2021, 12:00pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/2 "2021-03-10T12:00:40Z")

</div>

Hi, there are many setup guides, I created this one:

> **[Ultimate guide to Mautic cronjobs – Joey Keller](https://joeykeller.com/ultimate-guide-to-mautic-cronjobs/)**

Make sure you are using /bin/ instead of /app/ if you are on 3.0+

---

<div class="post-metadata">

**Author:** ![antoniodap](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/antoniodap/32/494_2.png) [@antoniodap](https://forum.mautic.org/u/antoniodap)\
**Post date:** [March 10, 2021, 12:22pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/3 "2021-03-10T12:22:38Z")

</div>

joey thank you for your reply.  
I have installed mautic with version 7.4 of php.  
I don’t have cpanel on this server.  
I have run the configuration but nothing, my segments are empty=(

 ![Schermata 2021-03-10 alle 12.20.24](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/019bfd76c9276c6eadca3c29eadf5b020215ce3d.jpeg)

---

<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:** [March 10, 2021, 12:24pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/4 "2021-03-10T12:24:30Z")

</div>

Hi,  
Great we are getting closer.

- When you manually enter the command in SSH, what is the response? (remove the dev/null part from the end)
- Is your Mautic installed into /var/www/html/mautic ?

Thx,  
J

---

<div class="post-metadata">

**Author:** ![antoniodap](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/antoniodap/32/494_2.png) [@antoniodap](https://forum.mautic.org/u/antoniodap)\
**Post date:** [March 10, 2021, 1:53pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/5 "2021-03-10T13:53:32Z")

</div>

Hi Joeyk,

- List item yes I put manually enter the command in SSH in /etc/crontab

- List item is correct man =)

is correct php /var… I have directory php7.4 🙂

 ![Schermata 2021-03-10 alle 13.51.25](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0a89f4460aae1910626d70965673c3b57df700b5.jpeg)

---

<div class="post-metadata">

**Author:** ![martinkiely](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/martinkiely/32/2651_2.png) [@martinkiely](https://forum.mautic.org/u/martinkiely)\
**Post date:** [March 10, 2021, 2:10pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/6 "2021-03-10T14:10:15Z")

</div>

Hi - The following may help. I resolved a cron issue posted in another thread. Read extract below.

* * *

Hi Joey,

I’m checking the crons but noticed that on your webpage you use singular terms for segment and broadcast:

/bin/console mautic:segment:update

/bin/console mautic:broadcast:send

Mautic Documentation shows plural terms for segment and broadcast:

/bin/console mautic:segments:update

/bin/console mautic:broadcasts:send

Which set are correct?

**UPDATE**

I ran the cron with the settings suggested on your webpage

/bin/console mautic:segment:update

/bin/console mautic:broadcast:send

Campaign and Segment emails are being received now. I think that Mautic Doc may need to be updated to reflect the correct cron settings.

Also I think that the memory errors have stopped. I’ll monitor and can update later. All good for now.

Thanks for your all your help with this.

---

<div class="post-metadata">

**Author:** ![antoniodap](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/antoniodap/32/494_2.png) [@antoniodap](https://forum.mautic.org/u/antoniodap)\
**Post date:** [March 10, 2021, 2:58pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/7 "2021-03-10T14:58:25Z")

</div>

Hi Martinkiely , update this .  
but not working segment

 ![Schermata 2021-03-10 alle 14.54.15](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/b1522f3ff857946ede5b7543e87db8616873f558.jpeg)  
can you help me?

---

<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:** [March 10, 2021, 3:09pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/8 "2021-03-10T15:09:24Z")

</div>

Hi,  
What is the output of this command?

`php /var/www/html/mautic/bin/console mautic:segment:update`

Plz run it in ssh as a command.

?

---

<div class="post-metadata">

**Author:** ![antoniodap](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/antoniodap/32/494_2.png) [@antoniodap](https://forum.mautic.org/u/antoniodap)\
**Post date:** [March 10, 2021, 3:56pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/10 "2021-03-10T15:56:30Z")

</div>

This is the result o.o

 ![Schermata 2021-03-10 alle 15.55.28](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/db784f84fe3d3f12dcf00d5374e40c63882914a9.jpeg)

update the crontab =)

---

<div class="post-metadata">

**Author:** ![antoniodap](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/antoniodap/32/494_2.png) [@antoniodap](https://forum.mautic.org/u/antoniodap)\
**Post date:** [March 10, 2021, 4:05pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/11 "2021-03-10T16:05:56Z")

</div>

Sorry man my installer in **/var/www/mautic**

---

<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:** [March 10, 2021, 5:08pm UTC](https://forum.mautic.org/t/segment-not-working-tags-help/18503/12 "2021-03-10T17:08:35Z")

</div>

So your segment is not being rebuilt, because you have a general SQL error…
