@Findus23 opened this Issue on January 24th 2020 Member

Reported in https://forum.matomo.org/t/new-core-tracker-settings-php-notice-in-apache-error-logs-on-matomo-3-13-1-and-php-7-4/35786

PHP Notice: Trying to access array offset on value of type null in /core/Tracker/Settings.php on line 44

Line 44 is a device/browser type check

if ($aBrowserInfo[‘type’] != ‘browser’) {

I wrapped it in an if(!empty($aBrowserInfo[‘type’])) statement (as opposed to just suppressing the notices) to see if that would make the notices go away.

https://github.com/matomo-org/matomo/blob/5322d058d5afcd2c40e76a13762038e05f0795f3/core/Tracker/Settings.php#L42-L48

This Issue was closed on January 26th 2020
Powered by GitHub Issue Mirror