Mautic Community Forums

The form says "please wait" and stays like that all the time

Your software
My Mautic version is: 3.3.2
My PHP version is: 7.3.26
My Database type and version is: 10.2.36-MariaDB

Your problem
My problem is:
Hello, I have a problem. It would be appreciated if someone could help me.
When submitting the form that is embedded in my website, it says “please wait” and stays like that all the time and does not jump to the thank you page or custom message. But the information does arrive, that is, the data enters Mautic, but it seems that the form has remained in “please wait”.
I see no error and no notification.

Thanks for your help

These errors are showing in the log: NO

Hi, I’ve run into the same issue and had to make a change to the .htaccess file in Mautic root by adding:

Header always unset X-Frame-Options

You’ll need to update the .htaccess file after every Mautic upgrade as it gets overwritten during the upgrade process.

1 Like

did you check if you got some errors in the developer console (CTRL + SHIFT + I)? in my case the console triggers the form field name causing the send error by an incorrect input.

I’ve got a similar issue with the form field “URL” and changed it for text to fix.

Ok, I’ll look into it and try and see if that resolves it. Although this was happening before I upgraded. I also thought that upgrading would resolve this. But it hasn’t.
I will now try the solution you are telling me. Thanks

One question, do you add this : Header always unset X-Frame-Options in the .htaccess file , do you add it at the end of the file but before or outside this tag, at the end of the whole.

Like this at the end

ok. Thank you very much.
That’s where I put it, but it’s still the same. The information is received, but it still says “please wait”.

For me, this was related to cross domain scripting. My mautic instance is on domain a, but the forms are faced publicly on domain b and c.

You host may have security settings that trump the .htaccess in the mautic root.

@succes33 Hi! You should check the browser developer console (CORS Errors + Javascript Errors) and the developer network tab (check the outgoing request to your mautic installation and take a look inside if there are errors).

You could also debug the mautic form javascript with your browser and set breakpoints in the code and see where it stucks.

Some common errors are:

  1. Your mautic installation is on a different domain and you get cors errors
  2. you got a javascript error in your homepage which somehow interrupts the process
  3. the mautic reply got an error
  4. the mtc script embedded in your page got a different domain than your mautic form

If you send me the url from the page with the embedded url I could take a look and give you feedback

Greetings
Sebastian