Live Mode no longer Live?

Your software
My Mautic version is: 4.4.9
My PHP version is: 7.4
My Database type and version is: 10.3.39-MariaDB

Your problem
My problem is: Live Mode does not work.

These errors are showing in the log: None.

Steps I have tried to fix the problem:

By clicking the thunderbolt icon in the top right-hand corner of the contacts view, you can enable ‘live mode’. In this mode contacts are supposed to be automatically added to the top of lists in real time, as they are created. I am not seeing this. In older versions of Mautic I did see it working, but now it doesn’t. You have to manually refresh - which defeats the purpose of having a ‘live mode’.

I tested this on 4.4.9 and a clean install of 4.4.10. I also test on a demo install of 4.4.10 on a completely different server.

Can anyone else please confirm if this is broken?

Thanks

I never saw it working actually. Are you sure? Which version?

I’ve been using Mautic since 2.16.2 and I believe it was working back then. The list view of contacts would refresh every few seconds. Although I never really used the feature in a production sense I did think it was pretty neat to have.

My main concern at seeing it not working now is if this means there is something wrong with my current install.

There is actually an error generated when live mode is enabled and a contact action is recorded:

[2023-11-13 13:48:12] mautic.WARNING: PHP Warning - array_flip() expects parameter 1 to be array, null given - in file /home/domain/public_html/hub/app/bundles/LeadBundle/Views/Lead/list_rows.html.php - at line 85 {“mauticTemplateVars”:{“app”:“[object] (Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables: {})”,“items”:{“101579”:“[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #101579)”},“noContactList”:,“permissions”:{“lead:leads:viewown”:true,“lead:leads:viewother”:true,“lead:leads:create”:true,“lead:leads:editown”:true,“lead:leads:editother”:true,“lead:leads:deleteown”:true,“lead:leads:deleteother”:true},“security”:“[object] (Mautic\CoreBundle\Security\Permissions\CorePermissions: {})”,“highlight”:true,“mauticTemplate”:“MauticLeadBundle:Lead:list_rows.html.php”,“view”:“[object] (Mautic\CoreBundle\Templating\Engine\PhpEngine: {})”},“app”:“[object] (Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables: {})”,“items”:{“101579”:“[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #101579)”},“noContactList”:,“permissions”:{“lead:leads:viewown”:true,“lead:leads:viewother”:true,“lead:leads:create”:true,“lead:leads:editown”:true,“lead:leads:editother”:true,“lead:leads:deleteown”:true,“lead:leads:deleteother”:true},“security”:“[object] (Mautic\CoreBundle\Security\Permissions\CorePermissions: {})”,“highlight”:true,“mauticTemplate”:“MauticLeadBundle:Lead:list_rows.html.php”,“view”:“[object] (Mautic\CoreBundle\Templating\Engine\PhpEngine: {})”,“item”:“[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #101579)”,“fields”:{“core”:{“points”:{“id”:“9”,“label”:“Points”,“alias”:“points”,“type”:“number”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:“0”,“value”:“2”,“normalizedValue”:“2”},“last_active”:{“id”:“19”,“label”:“Date Last Active”,“alias”:“last_active”,“type”:“datetime”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“2023-11-13 13:48:09”,“normalizedValue”:“2023-11-13 13:48:09”},“title”:{“id”:“1”,“label”:“Title”,“alias”:“title”,“type”:“lookup”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:1:{s:4:"list";a:3:{i:0;s:2:"Mr";i:1;s:3:"Mrs";i:2;s:4:"Miss";}}”,“default_value”:null,“value”:null,“normalizedValue”:null},“firstname”:{“id”:“2”,“label”:“First Name”,“alias”:“firstname”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“lastname”:{“id”:“3”,“label”:“Last Name”,“alias”:“lastname”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“company”:{“id”:“4”,“label”:“Primary company”,“alias”:“company”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“position”:{“id”:“5”,“label”:“Position”,“alias”:“position”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“email”:{“id”:“6”,“label”:“Email”,“alias”:“email”,“type”:“email”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“phone”:{“id”:“8”,“label”:“Phone”,“alias”:“phone”,“type”:“tel”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“mobile”:{“id”:“7”,“label”:“Mobile”,“alias”:“mobile”,“type”:“tel”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“address1”:{“id”:“11”,“label”:“Address Line 1”,“alias”:“address1”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“address2”:{“id”:“12”,“label”:“Address Line 2”,“alias”:“address2”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“city”:{“id”:“13”,“label”:“City”,“alias”:“city”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“Kilburn”,“normalizedValue”:“Kilburn”},“state”:{“id”:“14”,“label”:“State”,“alias”:“state”,“type”:“region”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“Camden”,“normalizedValue”:“Camden”},“zipcode”:{“id”:“15”,“label”:“Zip Code”,“alias”:“zipcode”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“timezone”:{“id”:“18”,“label”:“Preferred Timezone”,“alias”:“timezone”,“type”:“timezone”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“Europe/London”,“normalizedValue”:“Europe/London”},“country”:{“id”:“16”,“label”:“Country”,“alias”:“country”,“type”:“country”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“United Kingdom”,“normalizedValue”:“United Kingdom”},“fax”:{“id”:“10”,“label”:“Fax”,“alias”:“fax”,“type”:“tel”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“preferred_locale”:{“id”:“17”,“label”:“Preferred Locale”,“alias”:“preferred_locale”,“type”:“locale”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“attribution_date”:{“id”:“20”,“label”:“Attribution Date”,“alias”:“attribution_date”,“type”:“datetime”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“attribution”:{“id”:“21”,“label”:“Attribution”,“alias”:“attribution”,“type”:“number”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:2:{s:9:"roundmode";s:1:"4";s:9:"precision";s:1:"2";}”,“default_value”:null,“value”:null,“normalizedValue”:null},“website”:{“id”:“22”,“label”:“Website”,“alias”:“website”,“type”:“url”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“message”:{“id”:“45”,“label”:“Message”,“alias”:“message”,“type”:“textarea”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“honeypot”:{“id”:“46”,“label”:“Honeypot”,“alias”:“honeypot”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“profile”:{“id”:“47”,“label”:“Profile”,“alias”:“profile”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null}},“social”:{“facebook”:{“id”:“23”,“label”:“Facebook”,“alias”:“facebook”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“foursquare”:{“id”:“24”,“label”:“Foursquare”,“alias”:“foursquare”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“instagram”:{“id”:“26”,“label”:“Instagram”,“alias”:“instagram”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“linkedin”:{“id”:“27”,“label”:“LinkedIn”,“alias”:“linkedin”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“skype”:{“id”:“28”,“label”:“Skype”,“alias”:“skype”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“twitter”:{“id”:“29”,“label”:“Twitter”,“alias”:“twitter”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null}},“personal”:,“professional”:},“hasEditAccess”:true,“custom”:[{“attr”:{“href”:“/hub/s/contacts/view/101579”,“data-toggle”:“ajax”,“data-method”:“POST”},“btnText”:“mautic.core.details”,“iconClass”:“fa fa-info-circle”}]} {“hostname”:“first.host82043.com”,“pid”:19236}
[2023-11-13 13:48:12] mautic.WARNING: PHP Warning - Invalid argument supplied for foreach() - in file /home/domain/public_html/hub/app/bundles/LeadBundle/Views/Lead/list_rows.html.php - at line 86 {“mauticTemplateVars”:{“app”:“[object] (Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables: {})”,“items”:{“101579”:“[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #101579)”},“noContactList”:,“permissions”:{“lead:leads:viewown”:true,“lead:leads:viewother”:true,“lead:leads:create”:true,“lead:leads:editown”:true,“lead:leads:editother”:true,“lead:leads:deleteown”:true,“lead:leads:deleteother”:true},“security”:“[object] (Mautic\CoreBundle\Security\Permissions\CorePermissions: {})”,“highlight”:true,“mauticTemplate”:“MauticLeadBundle:Lead:list_rows.html.php”,“view”:“[object] (Mautic\CoreBundle\Templating\Engine\PhpEngine: {})”},“app”:“[object] (Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables: {})”,“items”:{“101579”:“[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #101579)”},“noContactList”:,“permissions”:{“lead:leads:viewown”:true,“lead:leads:viewother”:true,“lead:leads:create”:true,“lead:leads:editown”:true,“lead:leads:editother”:true,“lead:leads:deleteown”:true,“lead:leads:deleteother”:true},“security”:“[object] (Mautic\CoreBundle\Security\Permissions\CorePermissions: {})”,“highlight”:true,“mauticTemplate”:“MauticLeadBundle:Lead:list_rows.html.php”,“view”:“[object] (Mautic\CoreBundle\Templating\Engine\PhpEngine: {})”,“item”:“[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #101579)”,“fields”:{“core”:{“points”:{“id”:“9”,“label”:“Points”,“alias”:“points”,“type”:“number”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:“0”,“value”:“2”,“normalizedValue”:“2”},“last_active”:{“id”:“19”,“label”:“Date Last Active”,“alias”:“last_active”,“type”:“datetime”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“2023-11-13 13:48:09”,“normalizedValue”:“2023-11-13 13:48:09”},“title”:{“id”:“1”,“label”:“Title”,“alias”:“title”,“type”:“lookup”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:1:{s:4:"list";a:3:{i:0;s:2:"Mr";i:1;s:3:"Mrs";i:2;s:4:"Miss";}}”,“default_value”:null,“value”:null,“normalizedValue”:null},“firstname”:{“id”:“2”,“label”:“First Name”,“alias”:“firstname”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“lastname”:{“id”:“3”,“label”:“Last Name”,“alias”:“lastname”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“company”:{“id”:“4”,“label”:“Primary company”,“alias”:“company”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“position”:{“id”:“5”,“label”:“Position”,“alias”:“position”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“email”:{“id”:“6”,“label”:“Email”,“alias”:“email”,“type”:“email”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“phone”:{“id”:“8”,“label”:“Phone”,“alias”:“phone”,“type”:“tel”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“mobile”:{“id”:“7”,“label”:“Mobile”,“alias”:“mobile”,“type”:“tel”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“address1”:{“id”:“11”,“label”:“Address Line 1”,“alias”:“address1”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“address2”:{“id”:“12”,“label”:“Address Line 2”,“alias”:“address2”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“city”:{“id”:“13”,“label”:“City”,“alias”:“city”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“Kilburn”,“normalizedValue”:“Kilburn”},“state”:{“id”:“14”,“label”:“State”,“alias”:“state”,“type”:“region”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“Camden”,“normalizedValue”:“Camden”},“zipcode”:{“id”:“15”,“label”:“Zip Code”,“alias”:“zipcode”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“timezone”:{“id”:“18”,“label”:“Preferred Timezone”,“alias”:“timezone”,“type”:“timezone”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“Europe/London”,“normalizedValue”:“Europe/London”},“country”:{“id”:“16”,“label”:“Country”,“alias”:“country”,“type”:“country”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:“United Kingdom”,“normalizedValue”:“United Kingdom”},“fax”:{“id”:“10”,“label”:“Fax”,“alias”:“fax”,“type”:“tel”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“preferred_locale”:{“id”:“17”,“label”:“Preferred Locale”,“alias”:“preferred_locale”,“type”:“locale”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“attribution_date”:{“id”:“20”,“label”:“Attribution Date”,“alias”:“attribution_date”,“type”:“datetime”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“attribution”:{“id”:“21”,“label”:“Attribution”,“alias”:“attribution”,“type”:“number”,“group”:“core”,“object”:“lead”,“is_fixed”:“1”,“properties”:“a:2:{s:9:"roundmode";s:1:"4";s:9:"precision";s:1:"2";}”,“default_value”:null,“value”:null,“normalizedValue”:null},“website”:{“id”:“22”,“label”:“Website”,“alias”:“website”,“type”:“url”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“message”:{“id”:“45”,“label”:“Message”,“alias”:“message”,“type”:“textarea”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“honeypot”:{“id”:“46”,“label”:“Honeypot”,“alias”:“honeypot”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“profile”:{“id”:“47”,“label”:“Profile”,“alias”:“profile”,“type”:“text”,“group”:“core”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null}},“social”:{“facebook”:{“id”:“23”,“label”:“Facebook”,“alias”:“facebook”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“foursquare”:{“id”:“24”,“label”:“Foursquare”,“alias”:“foursquare”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“instagram”:{“id”:“26”,“label”:“Instagram”,“alias”:“instagram”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“linkedin”:{“id”:“27”,“label”:“LinkedIn”,“alias”:“linkedin”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“skype”:{“id”:“28”,“label”:“Skype”,“alias”:“skype”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null},“twitter”:{“id”:“29”,“label”:“Twitter”,“alias”:“twitter”,“type”:“text”,“group”:“social”,“object”:“lead”,“is_fixed”:“0”,“properties”:“a:0:{}”,“default_value”:null,“value”:null,“normalizedValue”:null}},“personal”:,“professional”:},“hasEditAccess”:true,“custom”:[{“attr”:{“href”:“/hub/s/contacts/view/101579”,“data-toggle”:“ajax”,“data-method”:“POST”},“btnText”:“mautic.core.details”,“iconClass”:“fa fa-info-circle”}],“columsAliases”:null} {“hostname”:“first.host82043.com”,“pid”:19236}

Your install is fine, it’s been broken since 2.1x version.
I would love to see it, as it’s an eyecandy.

Thanks for confirming @joeyk. I guess it is pretty low priority on the list of bugs to be fixed (if it is even on the list), which is completely understandable. I can see in my browser console that the ajax requests are firing properly every few seconds, but clearly something has come unstuck.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.