# PHP Notice Logged Undefined offset in Auditlog/details.html.php - at line 62

**URL:** https://forum.mautic.org/t/php-notice-logged-undefined-offset-in-auditlog-details-html-php-at-line-62/14642
**Category:** Product Support
**Created:** [June 5, 2020, 10:07am UTC](https://forum.mautic.org/t/php-notice-logged-undefined-offset-in-auditlog-details-html-php-at-line-62/14642 "2020-06-05T10:07:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matthewday](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/matthewday/32/433_2.png) [@matthewday](https://forum.mautic.org/u/matthewday)
#### Post date: [June 5, 2020, 10:07am UTC](https://forum.mautic.org/t/php-notice-logged-undefined-offset-in-auditlog-details-html-php-at-line-62/14642/1 "2020-06-05T10:07:47Z")

</div>

**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
