Comments (13)
Nope, definitly not normal maybe something changed in 5.1, worked perfectly well in 5.0
(are you query the page from a browser or doing with built in webserver? maybe there is no UA string to work from) post the dump and will look into it.
from browser-detect.
I tested in 3 browsers: Chrome, Firefox, Safari.
The result is the same.
from browser-detect.
Did you updated the browscap cache? If not you can active the autoupdate in the plugin config, just changed recently to be default true, maybe the cache is too old and only the browser family gets a match.
from browser-detect.
I am having the same problem. Could this issue be solved?
from browser-detect.
clear your browscap cache, if it's not solving it, then I need some exact data like,
- User Agent string from your browser
- Laravel version
- package version
with that i can create a testing environment to reproduce the issue.
from browser-detect.
Can confirm this, no useable results whatsoever. It also does not download the browsecap.ini file or at least it does not save it into /cache/Browsecap.
UA: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2622.0 Safari/537.36
Laravel version: v5.1.28
Package version: 2.0.2
Set autoupdate within the settings to true. Configured the package in a correct way within config/app.php.
Oh and yes, I tried downloading the browsercap.ini file manually and pasting it into cache/Browsercap, doesn't change a thing. Does not work.
from browser-detect.
Manual download will not work, since the browscap converting the ini, will have to look into the browscap package to resolve this, thanks for the informations.
from browser-detect.
As said, version numbers don't work.
Laravel version: v5.1.29
BlackBerry 10 browser apparently returns "Safari" (which is not, even though it says so)
Mozilla/5.0 (BB10; Touch) AppleWebKit/537.35+ (KHTML, like Gecko) Version/10.3.2.2639 Mobile Safari/537.35+
osFamily returns Win8.1 (and osVersion doesn't return anything)
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
And this is also without versions (in case it helps)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0
And
dd(BrowserDetect::detect("Mozilla/5.0 (BB10; Touch) AppleWebKit/537.35+ (KHTML, like Gecko) Version/10.3.2.2639 Mobile Safari/537.35+")->toString());
returns
"1||||Safari||||BlackBerryOS||||Blackberry|BlackBerry|A|2|1"
from browser-detect.
It even turned out to go so far that it stopped my ecommerce webpage from working :)
exception 'ErrorException' with message 'file_get_contents(http://browscap.org/stream?q=Full_PHP_BrowsCapINI): failed to open stream: HTTP request failed! HTTP/1.1 429 Too Many Requests ' in /var/www/production/webshop/vendor/garetjax/phpbrowscap/src/phpbrowscap/Browscap.php:961 Stack trace: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_get_conten...', '/var/www/produc...', 961, Array) #1 /var/www/production/webshop/vendor/garetjax/phpbrowscap/src/phpbrowscap/Browscap.php(961): file_get_contents('http://browscap...', false, Resource id #9) #2 /var/www/production/webshop/vendor/garetjax/phpbrowscap/src/phpbrowscap/Browscap.php(815): phpbrowscap\Browscap->_getRemoteData('http://browscap...') #3 /var/www/production/webshop/vendor/garetjax/phpbrowscap/src/phpbrowscap/Browscap.php(501): phpbrowscap\Browscap->_getRemoteIniFile('http://browscap...', '/var/www/produc...') #4 /var/www/production/webshop/vendor/garetjax/phpbrowscap/src/phpbrowscap/Browscap.php(288): phpb
from browser-detect.
Seems like a phpbrowscap doesn't work properly
"browser_name" => "Mozilla/5.0 (BB10; Touch) AppleWebKit/537.35+ (KHTML, like Gecko) Version/10.3.2.2639 Mobile Safari/537.35+"
"browser_name_regex" => "^mozilla/5\.0 \(bb10; touch\) applewebkit/.* \(khtml, like gecko\).*$"
"browser_name_pattern" => "Mozilla/5.0 (BB10; Touch) AppleWebKit/* (KHTML, like Gecko)*"
"Parent" => "BlackBerry"
"Comment" => "BlackBerry"
"Browser" => "BlackBerry"
"Platform" => "BlackBerry OS"
"Frames" => true
"IFrames" => true
"Tables" => true
"Cookies" => true
"JavaScript" => true
"isMobileDevice" => true
"CssVersion" => "2"
"Device_Name" => "Blackberry"
"Device_Maker" => "RIM"
"Version" => "0.0"
"MajorVer" => "0"
"MinorVer" => "0"
"Platform_Version" => "unknown"
"Platform_Description" => "unknown"
"Alpha" => false
"Beta" => false
"Win16" => false
"Win32" => false
"Win64" => false
"BackgroundSounds" => false
"VBScript" => false
"JavaApplets" => false
"ActiveXControls" => false
"isSyndicationReader" => false
"Crawler" => false
"AolVersion" => "0"
"RenderingEngine_Name" => "unknown"
"RenderingEngine_Version" => "unknown"
from browser-detect.
Reported 6 months ago and still not fixed? GaretJax/phpbrowscap
library is fine, I just tested it, and I'll actually use it instead of BrowserDetect
from browser-detect.
Sure, this project is basicly abadoned, I have no time to work on it, and is only up because it works perfectly fine under L4, I don't think it's going to be fixed in the near future, so if you have a better alternative use that, or send a fixing PR.
from browser-detect.
how to update browscap.ini file
from browser-detect.
Related Issues (20)
- Device Version HOT 2
- Windows 11 is being detected as Windows 10 HOT 2
- Undefined type 'hisorange\BrowserDetect\Contracts\ResultInterface'.
- isInApp returns true with Android Chrome Browser 102.0.5005.78 HOT 1
- Deprecation Message on PHP 8.1: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
- Latest version has wrong user agent retriever HOT 2
- Doesn't detect certain mobile devices HOT 4
- Detect TWA or PWA request HOT 3
- Google-Safety and Google are not considered bots HOT 5
- Browser::isMac() does not seem to work on some UA with iPad/iPod/iPhone in it HOT 1
- macOS version info HOT 1
- Laravel 10/11 HOT 1
- PHP 8 and Laravel 10 HOT 2
- Fetal Error when using Browser::isAndroid() HOT 1
- iPad detection not working HOT 1
- For 6.0.0 HOT 1
- In App User Agents are showing as Tablets HOT 3
- Problem of mobiledetect/mobiledetectlib version HOT 3
- Add support for Laravel 11 HOT 1
- Class "Spyc" not found error HOT 8
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 browser-detect.