Your software
My Mautic version is: 7.2
Installed with the docker 7.2-apache image
Your problem
My problem is: I try to build a campaign, that after a form submission, an email is send (very simple for now, as the problem seems unrelated to the steps I take).
I add the form, I add an action to send an email.
When I hit the save button on top, it says “There are some form validation errors (campaign: At least one event is required. Use the Launch Campaign Builder button to add one.) Please close the builder and fix them.” even though I have added these.
These errors are showing in the log:
There are no errors in either webserver log or the javascript console. All XHR requests are returned with a 200.
Steps I have tried to fix the problem:
Simplify the campaign as much as possible, to the bare minimum. Screenshots are attached.
Could you try again in a private browser window, and also check whether closing the builder and using “Save & Close” gives the same error?
This validation message means Mautic sees no events in the campaign data being saved, even though the email action is visible on the canvas. HTTP 200 responses alone do not rule that out.
In browser DevTools → Network, could you check whether the response when adding the email action contains a non-empty modifiedEvents, and whether the subsequent campaign-save request includes that event in campaign[campaignElements]?
Please also confirm whether this was a fresh installation or an upgrade. Those details should help explain why we cannot reproduce it elsewhere.
This was an empty 6 installation, which was upgraded to 7.0, and then just a couple of days ago to 7.2.
Would it be easiest to wipe the database and do a fresh install? There is a little bit of content in there, but nothing which couldn’t be recreated within an hour, I guess.
I had to upgrade from 7.0 because the save and close buttons in the campaign builder were not clickable at all.
Thanks for confirming. Please do not wipe the database just yet. Since this instance followed the 6 → 7.0 → 7.2 upgrade path, it is useful evidence for diagnosing an upgrade-related regression. A clean installation may confirm that the problem is upgrade-specific, but it would not explain or preserve the cause.
Before rebuilding it, please take a database and configuration backup, then try:
Clear the application cache inside the container:
php bin/console cache:clear
Retest once in a private browser window.
In DevTools → Network, capture:
the response returned when the email action is added, especially whether modifiedEvents is non-empty;
the request payload of the subsequent campaign save, especially whether campaign[campaignElements] contains the event;
the response body of that save request.
Please also share the output of:
php bin/console doctrine:migrations:status
An anonymised HAR file, or screenshots of those request payloads and responses, would be enough.
If campaignElements is already empty in the browser request, the builder is losing its state before submission. If it contains the event but server-side validation still reports no events, that points to an upgrade-related backend problem. Those two cases require different fixes.
If you need the fastest path back to a working system, a fresh 7.2 installation is reasonable after taking the backup and collecting the above information. Please keep the existing installation intact until we have identified whether it reproduces a core upgrade issue.