# V5.1 Campaigns do not filter Contacts by segment

**URL:** <https://forum.mautic.org/t/v5-1-campaigns-do-not-filter-contacts-by-segment/33874>\
**Category:** Product Support\
**Created:** [October 20, 2024, 7:41am UTC](https://forum.mautic.org/t/v5-1-campaigns-do-not-filter-contacts-by-segment/33874 "2024-10-20T07:41:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![domiserver](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/domiserver/32/13009_2.png) [@domiserver](https://forum.mautic.org/u/domiserver)\
**Post date:** [October 20, 2024, 7:41am UTC](https://forum.mautic.org/t/v5-1-campaigns-do-not-filter-contacts-by-segment/33874/1 "2024-10-20T07:41:58Z")

</div>

My Mautic version is: 5.1.1  
My PHP version is: 8.1  
My Database type and version is: MySQL 8.0.40

**My problem is:** No Contacts Found in a Campaign

No errors related in Settings \>\> System Info \>\> Log

**Steps to Reproduce the Issue:**

1. Reinstalled a new instance, v5.1.1
2. Created 1 Contact
3. Created 2 Segments
4. Added Segment #1 to the Contact
5. Launched Campaign Builder
6. Created 1 Campaign, selecting “Contact Source”
7. Selected Segment #1 for the Campaign
8. Selected an Action to modify Contact’s segment by adding “immediately” Segment #2
9. Saved and Closed Builder
10. Saved & Closed Campaign
11. In the section below, there are 3 tabs: Preview, Actions, and Contacts
12. Selected Contacts
13. Message: “No Contacts Found. Seems there are none! Try changing a filter if applicable.”

**Steps Taken to Resolve this Issue:**

1. Reinstalled all cron jobs
2. Reinstalled new instance v5.1.1
3. Consulted Mautic forums
4. Ran command: bin/console mautic:assets:generate
5. Ran command: bin/console cache:clear

Would you have any suggestions?

Thank you

---

<div class="post-metadata">

**Author:** ![domiserver](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/domiserver/32/13009_2.png) [@domiserver](https://forum.mautic.org/u/domiserver)\
**Post date:** [October 20, 2024, 9:29am UTC](https://forum.mautic.org/t/v5-1-campaigns-do-not-filter-contacts-by-segment/33874/2 "2024-10-20T09:29:42Z")

</div>

These are the steps I took to fix this issue.

1. I manually ran a cron job
2. Terminal $ cd bin
3. Terminal $ php console mautic:campaigns:update
4. Here is the output:

Rebuilding contacts for campaign 1

1 total contact(s) to be added in batches of 300

1/1 [============================] 100%

0 total contact(s) to be removed in batches of 300

1. In the Campaign’s lower section, there are 3 tabs: Preview, Actions, and Contacts
2. Select Contacts. I finally was able to see 1 Contact
3. The action requested in the Campaign Builder was successfully performed.

---

<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:** [October 21, 2024, 4:42am UTC](https://forum.mautic.org/t/v5-1-campaigns-do-not-filter-contacts-by-segment/33874/3 "2024-10-21T04:42:05Z")

</div>

Hi, this is not a solution, you just manually added the contacts via running the campaign update command.

Once you fix your cronjobs, the campigns will add contacts automatically.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [October 22, 2024, 4:42pm UTC](https://forum.mautic.org/t/v5-1-campaigns-do-not-filter-contacts-by-segment/33874/4 "2024-10-22T16:42:54Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
