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

No results at all #7

Closed
richstandbrook opened this issue May 19, 2014 · 6 comments
Closed

No results at all #7

richstandbrook opened this issue May 19, 2014 · 6 comments

Comments

@richstandbrook
Copy link

Really like the look of this library, I just don't seem to be able to get any results at all. Using HTTP_USER_AGENT or static user agents from the test fixtures. I'm on php 5.3.3 and using the usage example from the read me.

@sgiehl
Copy link
Member

sgiehl commented May 19, 2014

Have you checked out from git or have you use composer? The current readme won't work with the latest composer version. Need to publish a new version to composer the next days...

@richstandbrook
Copy link
Author

Oh I see, so the composer version is old?

@sgiehl
Copy link
Member

sgiehl commented May 19, 2014

Try using 'dev-master' as version in composer.

@richstandbrook
Copy link
Author

That's what I'm using "piwik/device-detector": "dev-master".

$userAgent = $_SERVER['HTTP_USER_AGENT'];
$dd = new DeviceDetector($userAgent);
$dd->discardBotInformation();
$dd->parse();
var_dump($dd->getClient()); // outputs NULL

@sgiehl
Copy link
Member

sgiehl commented May 19, 2014

Please have look at test.php.
You may need to require vendor/autoload.php and add a 'use DeviceDetector/DeviceDetector'

sgiehl pushed a commit that referenced this issue May 19, 2014
@richstandbrook
Copy link
Author

Thanks @sgiehl I omitted that from my snippet above but it was finding the class ok. I was even trying to follow through the source code to find what was happening, the DeviceDetector object defiantly had the User Agent string but I didn't have time to trace the problem. I don't know what I was doing wrong, but I dropped back to version 1 and now I'm getting everything I need – that'll do for now.

@sgiehl sgiehl closed this as completed May 20, 2014
sgiehl pushed a commit that referenced this issue May 31, 2015
Improved detection of Wiko smartphones
sgiehl pushed a commit that referenced this issue Aug 25, 2016
* Fixes #1.
Implemented dbrowser and Streamy browsers detection.

* Fixed indents in Browser.php.

* Fixed dbrowser's default engine.

* Moved Streamy regex before Chrome one.
Fixes #7.
sgiehl pushed a commit that referenced this issue Aug 31, 2016
sgiehl pushed a commit that referenced this issue Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants