# mautic-form.js Failed to load resource

**URL:** <https://forum.mautic.org/t/mautic-form-js-failed-to-load-resource/7770>\
**Category:** Product Support\
**Created:** [March 3, 2017, 4:58am UTC](https://forum.mautic.org/t/mautic-form-js-failed-to-load-resource/7770 "2017-03-03T04:58:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfoulkes](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tfoulkes](https://forum.mautic.org/u/tfoulkes)\
**Post date:** [March 3, 2017, 4:58am UTC](https://forum.mautic.org/t/mautic-form-js-failed-to-load-resource/7770/1 "2017-03-03T04:58:21Z")

</div>

I am having a weird issue with a JS script not being found when I load my Mautic form in a modal.  
  
I have a Mautic form that is in a modal that is created in the focus items section. My site is running on Wordpress and I have the wp-mautic plugin installed.  
  
  
  
I am getting the following error in the JS console:  
  
  
  
Failed to load resource: the server responded with a status of 404 (Not Found) mautic-form.js  
  
  
  
I can’t figure out why the this script is broken.

- Tyler

---

<div class="post-metadata">

**Author:** ![tfoulkes](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tfoulkes](https://forum.mautic.org/u/tfoulkes)\
**Post date:** [March 3, 2017, 4:58am UTC](https://forum.mautic.org/t/mautic-form-js-failed-to-load-resource/7770/2 "2017-03-03T04:58:21Z")

</div>

I am having a weird issue with a JS script not being found when I load my Mautic form in a modal.  
I have a Mautic form that is in a modal that is created in the focus items section. My site is running on Wordpress and I have the wp-mautic plugin installed.

I am getting the following error in the JS console:

Failed to load resource: the server responded with a status of 404 (Not Found) mautic-form.js

I can’t figure out why the this script is broken.

- Tyler

---

<div class="post-metadata">

**Author:** ![lcssanches](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lcssanches](https://forum.mautic.org/u/lcssanches)\
**Post date:** [March 10, 2017, 12:06am UTC](https://forum.mautic.org/t/mautic-form-js-failed-to-load-resource/7770/3 "2017-03-10T00:06:14Z")

</div>

I’m having same.

In my case my mautic is installed on  
www.sitesite.com.br/\_m

And the resource “mautic-form.js” is trying to be loaded from “[https://www.sitesite.com.br/](https://www.sitesite.com.br/)\_m/\_m/media/js/mautic-form.js”

Note the double “\_m/” on url.

I think the update 2.6.1 broke this.

---

<div class="post-metadata">

**Author:** ![alfonso](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alfonso](https://forum.mautic.org/u/alfonso)\
**Post date:** [March 13, 2017, 10:59pm UTC](https://forum.mautic.org/t/mautic-form-js-failed-to-load-resource/7770/4 "2017-03-13T22:59:26Z")

</div>

Same problem here.

---

<div class="post-metadata">

**Author:** ![montero](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@montero](https://forum.mautic.org/u/montero)\
**Post date:** [May 10, 2017, 7:46pm UTC](https://forum.mautic.org/t/mautic-form-js-failed-to-load-resource/7770/5 "2017-05-10T19:46:41Z")

</div>

I had the same issue on my self-installed instance, and I fixed it by changing the domain name in configuration.

Instead of

www.sitesite.com.br/\_m

just do

www.sitesite.com.br

You might have to rebuild your forms after. Then the double “\_m/” on url will disappear.

---

<div class="post-metadata">

**Author:** ![jCst](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jCst](https://forum.mautic.org/u/jCst)\
**Post date:** [May 11, 2017, 2:24pm UTC](https://forum.mautic.org/t/mautic-form-js-failed-to-load-resource/7770/6 "2017-05-11T14:24:16Z")

</div>

Probably your solution is here:

[https://www.mautic.org/community/index.php/7552-v-2-8-0-404-on-mautic-form-js/p1#p22721](https://www.mautic.org/community/index.php/7552-v-2-8-0-404-on-mautic-form-js/p1#p22721)

I had a very similar problem. Praises to @MxyzptlkFishStix for helping out at the time.

Ciao
