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”.
Loading failed for the with source “https://BitnamiEC2IP/mtc.js”. home:1:1
Loading failed for the with source “https://amautic.mydomain.com/mtc.js”.
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: 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: 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: 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: 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 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.