Your software
My Mautic version is: 3.1 & 2.16.3
My PHP version is: 7.2
Your problem
My problem is:
Trying to add focus items to a Mautic landing page
I can only add {focus=1} in a landing page, any other form does not show.
For fucus item =1 everything works fine. Now if I go and change the 1 to a 3, first it does not show up in the dropdown, so now my code looks like {focus=3}.
I go and test the page and it does not work.
These errors are showing in the log:
This is the error that I see in the console:
Failed to load resource: the server responded with a status of 404 (Not Found) https://mydomain.com/focus/3.js
In the System Logs I am seeing this:
[2020-10-05 08:40:25] mautic.NOTICE: PHP Notice - Undefined index: safari_web_id - in file /var/www/mydomain/app/bundles/NotificationBundle/Helper/NotificationHelper.php - at line 117 {“integration”:"[object] (Mautic\NotificationBundle\Integration\OneSignalIntegration: {})",“settings”:"[object] (Mautic\PluginBundle\Entity\Integration: Mautic\PluginBundle\Entity\Integration with ID #1)",“keys”:,“supported”:[“mobile”,“landing_page_enabled”,“welcome_notification_enabled”,“tracking_page_enabled”],“featureSettings”:{“subdomain_name”:null,“platforms”:},“appId”:null}
Steps I have tried to fix the problem:
I have tried adding the code to the bottom of the page without using the personalised focus item token.
I added more detail to my response. The error has to do with incorrect headers and MIME types. I dunno if Mautic is generating them incorrectly in the landing page builder output, if something crazy is in the .htaccess generated by mautic when you install is doing odd re-writes or what. It will take some time to chase down.