# Issue with button functionality

**URL:** <https://forum.mautic.org/t/issue-with-button-functionality/30789>\
**Category:** Product Support\
**Created:** [February 5, 2024, 1:51pm UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789 "2024-02-05T13:51:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![toguna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/toguna/32/11392_2.png) [@toguna](https://forum.mautic.org/u/toguna)\
**Post date:** [February 5, 2024, 1:51pm UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789/1 "2024-02-05T13:51:58Z")

</div>

**Your software**  
My Mautic version is: Mautic 5.0.2  
My PHP version is: 8.0  
My Database type and version is:10.2.44-MariaDB

**Your problem**

Hi Community !

I have just installed Mautic 5.0.2, and I am facing an issue with the functioning of form buttons. The information is correctly being saved in Mautic, but a message “Please wait” appears in the button, and the intended actions do not execute (e.g., downloading a resource, displaying a validation message, etc.). This problem affects all my forms. I believe I may have overlooked something in the configuration.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 5, 2024, 5:00pm UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789/2 "2024-02-05T17:00:54Z")

</div>

Hello!  
If this happens, plz check for javascript errors in your browser’s console.  
Any 500 errors shown?

---

<div class="post-metadata">

**Author:** ![toguna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/toguna/32/11392_2.png) [@toguna](https://forum.mautic.org/u/toguna)\
**Post date:** [February 9, 2024, 4:33pm UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789/3 "2024-02-09T16:33:22Z")

</div>

Here is the error displayed in my log.  
[2024-02-09T16:28:18.734692+00:00] mautic.ERROR: [MAIL ERROR] Unable to connect with STARTTLS: stream\_socket\_enable\_crypto(): Peer certificate CN=`#######' did not match expected CN=`localhost’ {“hostname”:“#######”,“pid”:1041563}

---

<div class="post-metadata">

**Author:** ![astrylis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/astrylis/32/6421_2.png) [@astrylis](https://forum.mautic.org/u/astrylis)\
**Post date:** [February 9, 2024, 6:24pm UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789/4 "2024-02-09T18:24:28Z")

</div>

An email error, are you trying to send an email on the back of a form action? if so check your email settings as something is not right there.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 10, 2024, 5:39am UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789/5 "2024-02-10T05:39:51Z")

</div>

To me it sounds like you have javascript errors due to wrong domain config in your mautic. Site url might be wrongly added. Maybe regenerating assets would help.

---

<div class="post-metadata">

**Author:** ![toguna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/toguna/32/11392_2.png) [@toguna](https://forum.mautic.org/u/toguna)\
**Post date:** [February 26, 2024, 7:06pm UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789/6 "2024-02-26T19:06:30Z")

</div>

Thank you for your responses.

The email is actually sent and received. So the problem doesn’t come from the email settings. However, the action doesn’t end with displaying a thank you message or redirecting to another page. No resource can be downloaded either. I’ve checked everything, but without success.

---

<div class="post-metadata">

**Author:** ![toguna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/toguna/32/11392_2.png) [@toguna](https://forum.mautic.org/u/toguna)\
**Post date:** [February 27, 2024, 8:29am UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789/7 "2024-02-27T08:29:34Z")

</div>

It seems that the issue is related to using a form on a domain different from where my Mautic instance is hosted. I manage several different domains: do I need to create a specific version of Mautic for each domain? This wouldn’t be very practical…

---

<div class="post-metadata">

**Author:** ![toguna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/toguna/32/11392_2.png) [@toguna](https://forum.mautic.org/u/toguna)\
**Post date:** [February 27, 2024, 5:35pm UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789/8 "2024-02-27T17:35:56Z")

</div>

I have finally found a solution which I am sharing here for those who are or will be concerned. The method of inserting a form in JavaScript or in an iframe works on the same domain but not on a different domain from where the Mautic version is installed. As I want to be able to manage several of my sites on a single version of Mautic, I used the second option of manual copy (“Copy and paste the form’s content into the document’s body”).

For me, it’s the only option that worked properly to manage external sites without the form submission button freezing.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [February 29, 2024, 5:36am UTC](https://forum.mautic.org/t/issue-with-button-functionality/30789/9 "2024-02-29T05:36:11Z")

</div>

Closed on February 29, 2024, 5:36am UTC

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
