Mautic Community Forums

Focus Item Issues

This is a fantastic new addition and nearly works well, but not quite.



I set up a focus item on the blog to show a simple signup form on scroll, which works.



I have two issues with the functionality when I click submit:


  1. Internal Server Error - Fatal Error
Code:
Fatal error: Call to a member function getTag() on null in /home/xxxx/marketing/app/bundles/LeadBundle/Entity/Lead.php on line 1161

2) CORS Issue -
Code:
app.js?vc2858016:253 Uncaught DOMException: Blocked a frame with origin "https://marketing.thehrbooth.co.uk" from accessing a cross-origin frame.
- I have setup the CORS domains as
Code:
https://www
and
Code:
https://subdomain
but still get this issue when submitting the form.

Any help would be appreciated.

Thanks
Derek

This is a fantastic new addition and nearly works well, but not quite.

I set up a focus item on the blog to show a simple signup form on scroll, which works.

I have two issues with the functionality when I click submit:

  1. Internal Server Error - Fatal Error Fatal error: Call to a member function getTag() on null in /home/xxxx/marketing/app/bundles/LeadBundle/Entity/Lead.php on line 1161

  2. CORS Issue - app.js?vc2858016:253 Uncaught DOMException: Blocked a frame with origin "https://marketing.thehrbooth.co.uk" from accessing a cross-origin frame. - I have setup the CORS domains as https://www and https://subdomain but still get this issue when submitting the form.

Any help would be appreciated.

Thanks
Derek

I get the exact same issue with v2.4

I’ve been able to isolate what causes it, but need a fix I think. May wait until v2.6 is released and upgrade instead.

To replicate the issue:
I just re-submit an email that already exists as a contact. - The error only comes up for existing contacts, not new contacts.

This also happens using different forms to re-submit the contact. So it’s something to do with the contact some how.

Appreciate if anyone knows how to fix this?

Thanks