# Loading mtc.js and forms scripts failed

**URL:** <https://forum.mautic.org/t/loading-mtc-js-and-forms-scripts-failed/17077>\
**Category:** Product Support\
**Created:** [November 19, 2020, 8:10pm UTC](https://forum.mautic.org/t/loading-mtc-js-and-forms-scripts-failed/17077 "2020-11-19T20:10:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tk1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tk1/32/1129_2.png) [@tk1](https://forum.mautic.org/u/tk1)\
**Post date:** [November 19, 2020, 8:10pm UTC](https://forum.mautic.org/t/loading-mtc-js-and-forms-scripts-failed/17077/1 "2020-11-19T20:10:57Z")

</div>

**Your software**  
My Mautic version is: 3.1.2  
My PHP version is: 7.3  
My Database type and version is: MySQL 5.5 (What Bitnami had set in the .php files, though I still had to set server\_db\_version in config and local.php to 5.7 for Mautic to work properly)

**Your problem**  
My problem is:

My tracking script won’t load. And my embedded forms are not loading half of the time.

These errors are showing in the browser log:

Loading failed for the with source “[https://BitnamiEC2IP/form/generate.js?id=1”](https://BitnamiEC2IP/form/generate.js?id=1%E2%80%9D).

Loading failed for the with source “[https://BitnamiEC2IP/mtc.js”](https://BitnamiEC2IP/mtc.js%E2%80%9D). [home:1:1](https://www.mydomain.com/home/)

Loading failed for the with source “[https://amautic.mydomain.com/mtc.js”](https://amautic.mydomain.com/mtc.js%E2%80%9D).

GTmetrix shows “No Response Headers - Request failed” as the reason for failed loading.

These errors are showing in Mautic logs:

> [2020-11-19 01:48:00] mautic.NOTICE: PHP Notice - Undefined index: path - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Controller/ExceptionController.php - at line 120 {“request”:“[object] (Symfony\Component\HttpFoundation\Request: GET //console HTTP/1.1\r\nAccept-Encoding: gzip\r\nConnection: close\r\nHost: 75.101.189.251\r\nReferer: [https://75.101.189.251:443/console/\r\nUser-Agent:](https://75.101.189.251:443/console/%5Cr%5CnUser-Agent:) Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36\r\nX-Php-Ob-Level: 1\r\n\r\n)”,“exception”:“[object] (Symfony\Component\Debug\Exception\FlattenException: {})”,“logger”:null,“class”:“Symfony\Component\HttpKernel\Exception\NotFoundHttpException”,“currentContent”:“”,“layout”:“Error”,“code”:404,“anonymous”:true,“baseTemplate”:“MauticCoreBundle:Default:slim.html.php”,“templatePage”:false,“template”:“MauticCoreBundle:Error:404.html.php”,“templating”:“[object] (Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine: {})”,“statusText”:“Not Found”,“url”:“//console”,“urlParts”:{“host”:“console”}}   
> [2020-11-18 19:51:15] mautic.NOTICE: PHP Notice - Undefined index: path - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Controller/ExceptionController.php - at line 120 {“request”:“[object] (Symfony\Component\HttpFoundation\Request: GET //HNAP1 HTTP/1.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8\r\nAccept-Encoding: deflate, gzip, identity\r\nAccept-Language: en-US;q=0.6,en;q=0.4\r\nCookie: 59002d1254f9597162b5964a4a3a2917=d65bf6fe1c6n3nt67lofpftkfa\r\nHost: 75.101.189.251\r\nReferer: [http://75.101.189.251/\r\nUser-Agent:](http://75.101.189.251/%5Cr%5CnUser-Agent:) Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1\r\nX-Php-Ob-Level: 1\r\nCookie: 59002d1254f9597162b5964a4a3a2917=d65bf6fe1c6n3nt67lofpftkfa\r\n\r\n)”,“exception”:“[object] (Symfony\Component\Debug\Exception\FlattenException: {})”,“logger”:null,“class”:“Symfony\Component\HttpKernel\Exception\NotFoundHttpException”,“currentContent”:“”,“layout”:“Error”,“code”:404,“anonymous”:true,“baseTemplate”:“MauticCoreBundle:Default:slim.html.php”,“templatePage”:false,“template”:“MauticCoreBundle:Error:404.html.php”,“templating”:“[object] (Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine: {})”,“statusText”:“Not Found”,“url”:“//HNAP1”,“urlParts”:{“host”:“HNAP1”}}   
> [2020-11-19 08:35:36] mautic.NOTICE: PHP Notice - Undefined index: path - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Controller/ExceptionController.php - at line 120 {“request”:“[object] (Symfony\Component\HttpFoundation\Request: GET //console HTTP/1.1\r\nAccept-Encoding: gzip\r\nConnection: close\r\nHost: 75.101.189.251\r\nReferer: [https://75.101.189.251/console/\r\nUser-Agent:](https://75.101.189.251/console/%5Cr%5CnUser-Agent:) Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36\r\nX-Php-Ob-Level: 1\r\n\r\n)”,“exception”:“[object] (Symfony\Component\Debug\Exception\FlattenException: {})”,“logger”:null,“class”:“Symfony\Component\HttpKernel\Exception\NotFoundHttpException”,“currentContent”:“”,“layout”:“Error”,“code”:404,“anonymous”:true,“baseTemplate”:“MauticCoreBundle:Default:slim.html.php”,“templatePage”:false,“template”:“MauticCoreBundle:Error:404.html.php”,“templating”:“[object] (Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine: {})”,“statusText”:“Not Found”,“url”:“//console”,“urlParts”:{“host”:“console”}}   
> [2020-11-19 13:29:49] mautic.NOTICE: PHP Notice - Undefined index: path - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Controller/ExceptionController.php - at line 120 {“request”:“[object] (Symfony\Component\HttpFoundation\Request: GET //console HTTP/1.1\r\nAccept-Encoding: gzip\r\nConnection: close\r\nHost: 75.101.189.251\r\nReferer: [https://75.101.189.251:443/console/\r\nUser-Agent:](https://75.101.189.251:443/console/%5Cr%5CnUser-Agent:) Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36\r\nX-Php-Ob-Level: 1\r\n\r\n)”,“exception”:“[object] (Symfony\Component\Debug\Exception\FlattenException: {})”,“logger”:null,“class”:“Symfony\Component\HttpKernel\Exception\NotFoundHttpException”,“currentContent”:“”,“layout”:“Error”,“code”:404,“anonymous”:true,“baseTemplate”:“MauticCoreBundle:Default:slim.html.php”,“templatePage”:false,“template”:“MauticCoreBundle:Error:404.html.php”,“templating”:“[object] (Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine: {})”,“statusText”:“Not Found”,“url”:“//console”,“urlParts”:{“host”:“console”}}

Steps I have tried to fix the problem:  
Read every relevant DuckDuckGo and forums post I could find.  
I’ve modified the tracking script with a whole variety of URLs including straight to my Bitnami AZ EC2 IP, a subdomain on my domain that routes to that IP, etc.  
Installed SSL certs on Bitnami instance for [amautic.mydomain.com](http://amautic.mydomain.com) domain  
Maybe more, it’s been a few hours now

_Any ideas?_

EDIT: Well, my dumb ass had uBlock Origin on and was blocking the scripts myself… Not sure how the forms will fare. They’ve been finicky.
