New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segment filter not saved or editable. #10947
Comments
Got this one sorted ... The server had shell function restricted so I had to remove the restriction from the shell function since it seems that Mautic needed those shell function to work. I believed it needed the shell_exec but I disabled the restriction on all of it and the filter condition box finally appeared ... |
If you use cPanel and experience the similar issue I was having, you will need to go to the root access of the cPanel "WHM" and remove all those functions from "Disable" box because it seems that Mautic need some of those function to work property. I removed restriction from all of it but I suspect it was the shell_exec that Mautic needed to have access to. If you don't have root access then you need to contact your server administrator ... |
WELP ... I spoke too soon ... Segment filter condition box does not appear when a filter is selected in the drop down menu. Probably missing some php extension .. is there a list of required extension online somewhere? |
This issue still remains and still an issue Here what in log now [2022-03-09 21:36:49] mautic.ERROR: STAT UPDATE: Error communicating with the stat server: 524 (Origin Time-out) [] [] And the server log [09-Mar-2022 19:07:47 UTC] PHP Warning: require(/home/agwmadmin/mas.agwm.org/vendor/autoload.php): failed to open stream: No such file or directory in /home/agwmadmin/mas.agwm.org/autoload.php on line 13 |
I am also seeing this issue. I don't see the autoload errors tho. This is a client (javascript) side i think, there's no console errors, no communication to backend. |
This issue is still ongoing and I noticed there're more new posts about this issue from others. |
This issue has been mentioned on Mautic Community Forums. There might be relevant details there: https://forum.mautic.org/t/create-new-segment-filter-4-2-rc-front-end-issue-on-filter/22785/3 |
Same issue on different server which I have root access to ... Composer installed Mautic have some type of issue of saving or creating conditions for Segment filters .. |
OK, so the fix for me. Although i was rebuilding from source in a container, so thus fresh, the media dir was from previous ver and thus dirty. |
This also what fixes it for me ... the command i use to fix it was php console mautic:assets:generate |
Hello, I have this error message on inspector (Chrome) :
Pierre |
@PierreAmmeloot did regenerating the assets resolve the issue? |
Hello @RCheesley, I have use this command line :
With this result : The issue persists. Pierre |
Hmm, assuming you're not using any kind of caching server-side or anything like Cloudflare which might need purging? Sounds somewhat similar to #10962. |
Hello @RCheesley, I confirm : I'm not using any kind of caching or anything like Cloudflare. I have this problem on another filter : Could this have anything to do with the changes @kuzmany made to the filters on Mautic 4.2.0? Pierre |
We had some pretty major segment refactoring in 4.2 and we will be investigating these issues as it doesn't seem to be consistent for everyone. We've got a couple of other things which are higher priority at this moment but hope to be able to get to it during the Open Source Friday community sprint on Friday. If you're able to join us with any developers that would be really helpful! |
Hello @RCheesley, Thanks for your feedback. Pierre |
@PierreAmmeloot I cannot reproduce |
Please test #10985 if it will fix your problem |
@PierreAmmeloot @TechBill @biggala2310 @donbowman please can you test this PR: #10985 and if it resolves the issue please report that on the PR so we can get it merged on Monday with 4.2.1. You can use the Gitpod button on the PR to spin up a Mautic instance with the PR applied in order to test quickly - or pull down the PR to test locally. Please ensure to test with dev mode - append /index_dev.php to the URL - so that you're not needing to faff about with regenerating assets. |
@RCheesley for my instance mautic:assets:generate was enough. I was surprised that I need it in a fresh Mautic. |
Closing this issue as the PR has been merged and will be released in 4.2.1. |
|
Hello, I have uptaded Mautic on 4.2.1 version. So I tried:
With this error message :
I can read this on my error log :
What can I do to get back to working normally? Pierre P.S.: @RCheesley can you reopen this ticket? |
Replying on a closed issue is not helpful. Please raise a new issue or post in the forums if you're not sure it's a bug. Sounds like you fixed the problem by regenerating the assets, so no need to reopen the issue. Why are you running mautic:assets:install in the first place? This command is not required and is nothing to do with the regeneration of the JS and CSS, which is what the mautic:assets:generate command does. I've no idea why it would be throwing that error because I've never seen that command actually being used and I have no idea what it actually does. |
Hello @RCheesley
As this issue is supposed to fix the problem and it doesn't, it seems appropriate to post here rather than opening a new bug. Next time, would you prefer me to open a separate issue?
As I show in my message, no action on the "assets" can correct the point.
The command: Command "mautic:assets:install" is not defined.
Tell me how I can get the point back to the right place by following the correct procedure. Pierre |
This issue is still persisting in 4.2.1 - should we open a new bug ? Exactly as described by @PierreAmmeloot above. |
Is there any chance you saved the segment in this state when there was the issue? If you create the same filter now, does it still happen? Also, please make sure that the browser cache is cleared after you run |
Its a fresh 4.2.1. install on the day that the issue happened. So its not an old segment. UPDATE: Now magically the buttons appeared. So looks like it could be a timing issue with the cron jobs and the cache - or stored JS in the browser cache. Not really sure what exactly solved the problem. But maybe the following sequence should help other users maybe?
|
Hello @adorosario, I have follow your instructions (on Mautic v4.2.1). I have created a new segment and the field appears correctly. So I think the problem is with the Mautic update. Pierre |
You could be right. Unfortunately, I am not familiar with the Mautic source (I'm more of a consumer) -- so maybe one of the contributors might be able to help. Your analysis should be very useful (if this is happening only on existing segments) |
Mautic Version
4.2.x series
PHP version
7.4
What browsers are you 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
The text was updated successfully, but these errors were encountered: