Warning: Undefined array key

Created on 11 August 2023, over 1 year ago
Updated 3 June 2024, 7 months ago

Problem/Motivation

I'm seeing a lot of these warnings in my log after upgrading from 8.x-2.15 to 8.x-2.16:

Warning: Undefined array key "java" in Drupal\visitors\Service\TrackerService->write() (line 138 of /var/www/mysite/web/modules/contrib/visitors/src/Service/TrackerService.php)
Warning: Undefined array key "fla" in Drupal\visitors\Service\TrackerService->write() (line 137 of /var/www/mysite/web/modules/contrib/visitors/src/Service/TrackerService.php)
Warning: Undefined array key "pdf" in Drupal\visitors\Service\TrackerService->write() (line 136 of /var/www/mysite/web/modules/contrib/visitors/src/Service/TrackerService.php)
Warning: Undefined array key "ag" in Drupal\visitors\Service\TrackerService->write() (line 142 of /var/www/mysite/web/modules/contrib/visitors/src/Service/TrackerService.php)
Warning: Undefined array key "wma" in Drupal\visitors\Service\TrackerService->write() (line 141 of /var/www/mysite/web/modules/contrib/visitors/src/Service/TrackerService.php)
Warning: Undefined array key "realp" in Drupal\visitors\Service\TrackerService->write() (line 140 of /var/www/mysite/web/modules/contrib/visitors/src/Service/TrackerService.php)
Warning: Undefined array key "qt" in Drupal\visitors\Service\TrackerService->write() (line 139 of /var/www/mysite/web/modules/contrib/visitors/src/Service/TrackerService.php)

The location for each warning is the same:

https://www.mysite.org/visitors/_track?_cvar=%7B%227%22%3A%5B%22route%22...

Any clues?

πŸ› Bug report
Status

Fixed

Version

2.16

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sah62 US

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024