# Create new segment filter 4.2-rc front end issue on filter

**URL:** <https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785>\
**Category:** Product Support\
**Created:** [February 22, 2022, 3:45pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785 "2022-02-22T15:45:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [February 22, 2022, 3:45pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/1 "2022-02-22T15:45:35Z")

</div>

**Your software**  
My Mautic version is: 4.2-rc  
My PHP version is: 7.4  
My Database type and version is: tidb

**Your problem**  
My problem is:

(see screenshot)

After upgrading to try 4.2 rc, when i create a new segment, the filter screen is blank.  
Selecting a pre-existing segment (e.g. one that was created prior, that has filters) works and shows options.

ANy suggestions on where i might look to debug?

 ![2022-02-22_10-42](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e4d88017c06b553d4a14c6154b5e0d2db6a94172.png)

These errors are showing in the log:

there were no errors logged either in javascript web console nor php/nginx log.

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [March 8, 2022, 1:03am UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/2 "2022-03-08T01:03:01Z")

</div>

So this problem remains in 4.2.0 (released).

I don’t see an error in the php logs.  
i don’t see an error in the javascript console.

I just don’t see the rest of the field fill in to edit. if i open an existing segment, it works and can be edited, but no new terms added.

Any pointers on how to debug?

yes have tried:

- clear cache (browser, server)
- firefox, chrome

---

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [March 10, 2022, 3:51pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/3 "2022-03-10T15:51:09Z")

</div>

> <https://github.com/mautic/mautic/issues/10947>
>
> \### Mautic Version
> 
> 4.2.x series
> 
> \### PHP version
> 
> 7.4
> 
> \### What browsers are yo…u seeing the problem on?
> 
> Chrome
> 
> \### What happened?
> 
> We create a tag to apply it to contacts then we wanted to create a Contact Segment filtered by a tag but the segment filter is not being saved or producing a filter box to apply to the segment. 
> 
> \### How can we reproduce this issue?
> 
> Step 1: Create a new Contact Segment 
> Step 2: Give it a name then go to filter tab
> Step 3: Select any filter.
> 
> Filter input box never appear or saved in filter tab when a filter is selected from the drop down menu. 
> 
> \### Relevant log output
> 
> \_No response\_
> 
> \### Code of Conduct
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct

is discussing the issue on github.

---

<div class="post-metadata">

**Author:** ![anotart](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/anotart/32/338_2.png) [@anotart](https://forum.mautic.org/u/anotart)\
**Post date:** [March 10, 2022, 4:53pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/4 "2022-03-10T16:53:15Z")

</div>

Same problem with a new install on AWS. No existing segments, so I don’t know if those would have worked, but exact same issue. Tried same steps, and also browsers plus Edge.

---

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [March 12, 2022, 9:20pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/5 "2022-03-12T21:20:10Z")

</div>

ok i fixed it for me.  
i ran mautic:assets:generate followed by assets:install

The media dir was dirty from previous (4.1) release.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [March 14, 2022, 1:06am UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/6 "2022-03-14T01:06:28Z")

</div>

How did you execute it? with php?

---

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [March 14, 2022, 12:46pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/7 "2022-03-14T12:46:00Z")

</div>

```auto
console mautic:assets:generate
console assets:install

```

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [March 14, 2022, 5:58pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/8 "2022-03-14T17:58:58Z")

</div>

> [@donbowman](#):
>
> `console assets:install`

Thanks … That what fixes it for me …

---

<div class="post-metadata">

**Author:** ![anotart](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/anotart/32/338_2.png) [@anotart](https://forum.mautic.org/u/anotart)\
**Post date:** [March 31, 2022, 6:19pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/9 "2022-03-31T18:19:41Z")

</div>

The update to 4.2.1 fixed it for me!

---

<div class="post-metadata">

**Author:** ![atc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/atc/32/7173_2.png) [@atc](https://forum.mautic.org/u/atc)\
**Post date:** [April 7, 2022, 10:49pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/10 "2022-04-07T22:49:29Z")

</div>

> [@donbowman](#):
>
> `console mautic:assets:generate`

Same issue - update to 4.2.1 fixed it for me along with a server cache clear.

---

<div class="post-metadata">

**Author:** ![hkchintapalli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/hkchintapalli/32/7685_2.png) [@hkchintapalli](https://forum.mautic.org/u/hkchintapalli)\
**Post date:** [June 1, 2022, 2:14pm UTC](https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/11 "2022-06-01T14:14:23Z")

</div>

HI,

I have tried to run  
console mautic:assets:generate  
console assets:install  
i got this result  
bitnami@ip-\*\*\*\*\*:/opt/bitnami/mautic/bin$ sudo /opt/bitnami/php/bin/php /opt/bitnami/mautic/bin/console mautic:assets:generate  
Production assets have been regenerated.  
bitnami@ip\*\*\*\*:/opt/bitnami/mautic/bin$ sudo /opt/bitnami/php/bin/php /opt/bitnami/mautic/bin/console assets:install

Installing assets as hard copies.

[OK] No assets were provided by any bundle.

any step should i need to follow ?  
Thanks in advance
