# form get submit but it say please wait

**URL:** https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868
**Category:** Product Support
**Created:** [December 15, 2016, 6:33pm UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868 "2016-12-15T18:33:18Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![SVermainterloper](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@SVermainterloper](https://forum.mautic.org/u/SVermainterloper)
#### Post date: [December 15, 2016, 6:33pm UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/1 "2016-12-15T18:33:18Z")

</div>

form get submit but in website it shows please wait [](http://prnt.sc/djuzlzhttp://prnt.sc/djuzlz) ![](http://prnt.sc/djuzlz)

---

<div class="post-metadata">

### Author: ![SVermainterloper](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@SVermainterloper](https://forum.mautic.org/u/SVermainterloper)
#### Post date: [December 15, 2016, 6:33pm UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/2 "2016-12-15T18:33:18Z")

</div>

form get submit but in website it shows please wait [](http://prnt.sc/djuzlzhttp://prnt.sc/djuzlz) ![](http://prnt.sc/djuzlz)

---

<div class="post-metadata">

### Author: ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)
#### Post date: [December 16, 2016, 7:26pm UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/3 "2016-12-16T19:26:20Z")

</div>

Try checking write permissions for the php sessions folder. I had the same problem and adding www-data as owner of /var/lib/php/sessions/ solved it for me.

Best,  
D.

---

<div class="post-metadata">

### Author: ![Aneta](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Aneta](https://forum.mautic.org/u/Aneta)
#### Post date: [July 25, 2017, 1:21pm UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/4 "2017-07-25T13:21:52Z")

</div>

@denispavliha Could you tell me where and how I should change it?

---

<div class="post-metadata">

### Author: ![Tobias2](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@Tobias2](https://forum.mautic.org/u/Tobias2)
#### Post date: [July 25, 2017, 2:50pm UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/5 "2017-07-25T14:50:32Z")

</div>

I have the same problem like @SVermainterloper . @SVermainterloper how did you solve this?

@denispavliha I installed mautic on a shared host and don’t have access to this folder. I installed it with softacoulous. Should it not run without changing folder permissions in that case?

---

<div class="post-metadata">

### Author: ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)
#### Post date: [July 26, 2017, 5:08am UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/6 "2017-07-26T05:08:44Z")

</div>

@Aneta - as written, you should check which user owns the php sessions folder. It should be the webserver’s user (www-data or httpd or similar) and have write permissions enabled.

@Tobias2 - idk, I only have Mautic instances on own VPS’s with, of course, root access. But it should probably run out-of-the-box in your case, yes.

---

<div class="post-metadata">

### Author: ![phuquy1311](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@phuquy1311](https://forum.mautic.org/u/phuquy1311)
#### Post date: [July 29, 2017, 12:33am UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/7 "2017-07-29T00:33:51Z")

</div>

I’m getting the same log error and the form is hang on submit button after hit submit. Here is the log:

```auto
[2017-07-29 00:24:05] mautic.CRITICAL: Uncaught PHP Exception DoctrineORMORMInvalidArgumentException: "A new entity was found through the relationship 'MauticEmailBundleEntityStatDevice#stat' that was not configured to cascade persist operations for entity: MauticEmailBundleEntityStat@0000000052ca741c00000000025c21fc. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'MauticEmailBundleEntityStat#__toString()' to get a clue." at /home/go.firetoeic.com/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {"exception":"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@0000000052ca741c00000000025c21fc. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue. at /home/go.firetoeic.com/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []
```

you can test the form here: [https://go.firetoeic.com/form/20](https://go.firetoeic.com/form/20)

---

<div class="post-metadata">

### Author: ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)
#### Post date: [August 2, 2017, 6:50am UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/8 "2017-08-02T06:50:01Z")

</div>

Yeah, your AJAX request gets “success” returned yet the form hangs. Well the error above is most probably something the dev team needs to address. Maybe you check if there is some PR on GitHub?

---

<div class="post-metadata">

### Author: ![jwldub](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@jwldub](https://forum.mautic.org/u/jwldub)
#### Post date: [August 2, 2017, 3:32pm UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/9 "2017-08-02T15:32:03Z")

</div>

This problem is all over the forums… it happened to all of my Mautic websites as soon as I upgraded to 2.9… Word to the wise, if you have not yet upgraded to 2.9, then DO NOT UPGRADE until this issue seems to be corrected… It makes all of your forms not function correctly and there has been no response from Mautic on how to fix the bug.

---

<div class="post-metadata">

### Author: ![BIZstraps](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@BIZstraps](https://forum.mautic.org/u/BIZstraps)
#### Post date: [August 30, 2017, 12:35am UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/10 "2017-08-30T00:35:45Z")

</div>

I had the same problem with a WordPress integration and found a simple solution. Basically, check the source code of the page containing your form and make sure that Mautic URL in your configuration settings match the URL in the tracking function in the source code. In my case, the embed code was generated as “[http://www.mysite.com/mautic](http://www.mysite.com/mautic)” and should be “[http://mysite.com/mautic](http://mysite.com/mautic)”… Check this out for more details: [https://mautic.com/help/forms-hanging/](https://mautic.com/help/forms-hanging/)

---

<div class="post-metadata">

### Author: ![yogesh.dhiman](https://avatars.discourse-cdn.com/v4/letter/y/3be4f8/32.png) [@yogesh.dhiman](https://forum.mautic.org/u/yogesh.dhiman)
#### Post date: [September 1, 2017, 5:14am UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/11 "2017-09-01T05:14:08Z")

</div>

Guys, We have sort out the “please wait” bug

b Please use the manual copy of form instead of iframe or script tag.[/b]

You just have to replace the IP Address (script.src = ‘[http://845.151.564.52/~eventsma/media/js/mautic-form.js](http://845.151.564.52/~eventsma/media/js/mautic-form.js)’😉 with your domain name (script.src = ‘[http://yourdomianname.com/media/js/mautic-form.js](http://yourdomianname.com/media/js/mautic-form.js)’; .) that’s it!

BEFORE

AFTER

---

<div class="post-metadata">

### Author: ![giovanni](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/giovanni/32/577_2.png) [@giovanni](https://forum.mautic.org/u/giovanni)
#### Post date: [September 20, 2017, 12:08pm UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/12 "2017-09-20T12:08:13Z")

</div>

Unfortunately we don’t have a domain up to know. We only have the IP.

---

<div class="post-metadata">

### Author: ![raymondkent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/raymondkent/32/412_2.png) [@raymondkent](https://forum.mautic.org/u/raymondkent)
#### Post date: [September 20, 2017, 10:20pm UTC](https://forum.mautic.org/t/form-get-submit-but-it-say-please-wait/6868/13 "2017-09-20T22:20:00Z")

</div>

This does seem to be a bug.

If you can get in and edit a couple of files then this has worked for me.

Follow the full thread for the instructions and where to find the files, and what line to look for.

Search this forum for the post called "form is hang on submit button after hit submit " it sows everything you need to know.

NOTE: after EACH Mautic upgrade you may need to do this. I’ve just had to do it again after the latest upgrade ☹
