Giter Site home page Giter Site logo

Comments (8)

sgiehl avatar sgiehl commented on August 16, 2024 3

Sorry, I'm on vacation at the moment. Maybe @mneudert can help on that one.

from device-detector.

meklis avatar meklis commented on August 16, 2024

Have same issue.
Seems problem from here - https://github.com/mustangostang/spyc

Do you find solution?

from device-detector.

liviuconcioiu avatar liviuconcioiu commented on August 16, 2024

A temporary solution for this can be something like this:

"files": ["vendor/mustangostang/spyc/Spyc.php"]

under

"exclude-from-classmap": ["Tests/"]

@sgiehl can you look what broke it?

from device-detector.

saulfrr avatar saulfrr commented on August 16, 2024

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.

mneudert avatar mneudert commented on August 16, 2024

According to mustangostang/spyc#90 this may have already been fixed. Can someone verify that?

from device-detector.

liviuconcioiu avatar liviuconcioiu commented on August 16, 2024

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.

saulfrr avatar saulfrr commented on August 16, 2024

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.

Charly66 avatar Charly66 commented on August 16, 2024

I confirm it's OK now, thanks.

from device-detector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.