matomo-org / plugin-DeviceDetectorCache

Makes tracking in Matomo Analytics faster by detecting many devices, operating systems, bots, and browsers from a cache.
https://matomo.org
GNU General Public License v3.0
3 stars 7 forks source link

"DeviceDetector\Cache\Cache" cannot be resolved #9

Closed aurelient closed 4 years ago

aurelient commented 4 years ago

After upgrading to Matomo 3.14, I get the following error after logging in:

Entry "DeviceDetector\Cache\Cache" cannot be resolved: the class is not instantiableFull definition:Object ( class = #NOT INSTANTIABLE# DeviceDetector\Cache\Cache scope = singleton lazy = false)

Would you have any clue on the source of the problem ? And ways to solve it ?

The shortest url with the problem is : mydomain.yy/matomo/index.php?module=CoreHome

tsteur commented 4 years ago

Hi @aurelient

can you check if your config/global.php is up to date and looks like this one? https://raw.githubusercontent.com/matomo-org/matomo/3.x-dev/config/global.php

aurelient commented 4 years ago

Hi, thanks for the answer! line 82 was missing 'DeviceDetector\Cache\Cache' => DI\object('Piwik\DeviceDetector\DeviceDetectorCache')->constructor(86400),

Adding it manually fixed the issue.

tsteur commented 4 years ago

Thanks for letting is now 👍 might need to check why the file wasn't updated when upgrading.

aurelient commented 4 years ago

You're welcome, let me know if you want to have a peek into some of the upgrade log files.