Your software
My Mautic version is: 2.16.2
My PHP version is: 7.3.17
Your problem
My problem is: Errors appearing in mautic log when viewing certain contacts. I have isolated the scenario where errors appear to only those contacts who have completed a campaign where the final step of the campaign was to remove a tag (rca-onboarding) and add a tag (rca-onboarded).
Two logs appear - one with an Undefined offset: 1 and the nother with Undefine offset: 0.
This is a pretty new installation of Mautic (about a week old) with around 5,000 contacts. Subject to these logs, the application appears to run OK.
These errors are showing in the log:
[2020-06-05 09:52:03] mautic.NOTICE: PHP Notice - Undefined offset: 1 - in file /PathToMautic/app/bundles/LeadBundle/Views/Auditlog/details.html.php - at line 62 {“mauticTemplateVars”:{“app”:"[object] (Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables: {})",“event”:{“eventType”:“update”,“eventLabel”:“System”,“timestamp”:“2020-06-04 17:24:16”,“details”:{“tags”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]}},“contentTemplate”:“MauticLeadBundle:Auditlog:details.html.php”},“lead”:"[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #392)",“mauticContent”:“lead”,“mauticTemplate”:“MauticLeadBundle:Auditlog:details.html.php”,“view”:"[object] (Mautic\CoreBundle\Templating\Engine\PhpEngine: {})"},“app”:"[object] (Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables: {})",“event”:{“eventType”:“update”,“eventLabel”:“System”,“timestamp”:“2020-06-04 17:24:16”,“details”:{“tags”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]}},“contentTemplate”:“MauticLeadBundle:Auditlog:details.html.php”},“lead”:"[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #392)",“mauticContent”:“lead”,“mauticTemplate”:“MauticLeadBundle:Auditlog:details.html.php”,“view”:"[object] (Mautic\CoreBundle\Templating\Engine\PhpEngine: {})",“details”:{“tags”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]}},“type”:“update”,“text”:"<table class=“table”>Field/ObjectNew ValueOld Value",“objects”:{“tags”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]}},“value”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]},“key”:“tags”,“values”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]},“field”:“tags”}
[2020-06-05 09:52:03] mautic.NOTICE: PHP Notice - Undefined offset: 0 - in file /PathToMautic/app/bundles/LeadBundle/Views/Auditlog/details.html.php - at line 62 {“mauticTemplateVars”:{“app”:"[object] (Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables: {})",“event”:{“eventType”:“update”,“eventLabel”:“System”,“timestamp”:“2020-06-04 17:24:16”,“details”:{“tags”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]}},“contentTemplate”:“MauticLeadBundle:Auditlog:details.html.php”},“lead”:"[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #392)",“mauticContent”:“lead”,“mauticTemplate”:“MauticLeadBundle:Auditlog:details.html.php”,“view”:"[object] (Mautic\CoreBundle\Templating\Engine\PhpEngine: {})"},“app”:"[object] (Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables: {})",“event”:{“eventType”:“update”,“eventLabel”:“System”,“timestamp”:“2020-06-04 17:24:16”,“details”:{“tags”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]}},“contentTemplate”:“MauticLeadBundle:Auditlog:details.html.php”},“lead”:"[object] (Mautic\LeadBundle\Entity\Lead: Mautic\LeadBundle\Entity\Lead with ID #392)",“mauticContent”:“lead”,“mauticTemplate”:“MauticLeadBundle:Auditlog:details.html.php”,“view”:"[object] (Mautic\CoreBundle\Templating\Engine\PhpEngine: {})",“details”:{“tags”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]}},“type”:“update”,“text”:"<table class=“table”>Field/ObjectNew ValueOld Value",“objects”:{“tags”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]}},“value”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]},“key”:“tags”,“values”:{“added”:[“rca-onboarded”],“removed”:[“rca-onboarding”]},“field”:“tags”}
Steps I have tried to fix the problem:
- Cleared the cache