Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
aurelient opened this issue Jul 23, 2020 · 4 comments
Closed

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

aurelient opened this issue Jul 23, 2020 · 4 comments
Labels
invalid This doesn't seem right

Comments

@aurelient
Copy link

aurelient commented Jul 23, 2020

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

@Findus23 Findus23 added the Bug Something isn't working label Jul 23, 2020
@tsteur
Copy link
Member

tsteur commented Jul 23, 2020

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

@tsteur tsteur added invalid This doesn't seem right and removed Bug Something isn't working labels Jul 23, 2020
@aurelient
Copy link
Author

aurelient commented Jul 25, 2020

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
Copy link
Member

tsteur commented Jul 25, 2020

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

@tsteur tsteur closed this as completed Jul 25, 2020
@aurelient
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants