mautic-form.js Failed to load resource

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

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

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/_m/_m/media/js/mautic-form.js”

Note the double “_m/” on url.

I think the update 2.6.1 broke this.

Same problem here.

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.

Probably your solution is here:

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