Comments (8)
Sorry, I'm on vacation at the moment. Maybe @mneudert can help on that one.
from device-detector.
Have same issue.
Seems problem from here - https://github.com/mustangostang/spyc
Do you find solution?
from device-detector.
A temporary solution for this can be something like this:
"files": ["vendor/mustangostang/spyc/Spyc.php"]
under
Line 23 in a57ab14
@sgiehl can you look what broke it?
from device-detector.
Exact same problem here.
use DeviceDetector\DeviceDetector;
$dd = new DeviceDetector($userAgent);
$dd->parse();
$clientInfo = $dd->getClient();
$osInfo = $dd->getOs();
$device = $dd->getDeviceName();
$brand = $dd->getBrandName();
$model = $dd->getModel();
[2024-03-07 13:44:43] local.ERROR: Class "Spyc" not found {"userId":2,"exception":"[object] (Error(code: 0): Class \"Spyc\" not found at /var/www/project/vendor/matomo/device-detector/Yaml/Spyc.php:28)
from device-detector.
According to mustangostang/spyc#90 this may have already been fixed. Can someone verify that?
from device-detector.
According to mustangostang/spyc#90 this may have already been fixed. Can someone verify that?
It has been fixed. Jobs are passing https://github.com/matomo-org/device-detector/actions/runs/8186046322/job/22409607131
from device-detector.
Just tested, not getting the error anymore.
Now i get this in return
[2024-03-07 20:41:36] local.INFO: array (
'clientInfo' =>
array (
'type' => 'browser',
'name' => 'Firefox',
'short_name' => 'FF',
'version' => '123.0',
'engine' => 'Gecko',
'engine_version' => '123.0',
'family' => 'Firefox',
),
'osInfo' =>
array (
'name' => 'Mac',
'short_name' => 'MAC',
'version' => '10.15',
'platform' => '',
'family' => 'Mac',
),
'device' => 'desktop',
'brand' => 'Apple',
'model' => '',
'userAgent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0',
)
from device-detector.
I confirm it's OK now, thanks.
from device-detector.
Related Issues (20)
- LuneOs
- TV Detection Improvements HOT 4
- Various Devices Detection Improvement
- "Go-http-client/2.0" "Dart/3.1 (dart:io)" detected as not being a bot HOT 2
- Bug on Mobile? HOT 1
- Vestel Production TV Devices HOT 4
- VIDAA OS / Hisense Production TV Devices
- Android Set-Top-Boxes
- Amazon Fire TV Detection by Build Models HOT 4
- CaptiveNetworkSupport agent not all identified HOT 3
- How about adding more device types? HOT 4
- Extra character in regex model HOT 1
- Proxy browser HOT 1
- Multiple brands with same name HOT 2
- Fake iPhones UA + clienthints
- Android TV Boxes
- Duplicate bots HOT 2
- Additional UA strings, currently not detected
- Which other useragents are supported besides $_SERVER['HTTP_USER_AGENT']? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from device-detector.