Code Monkey home page Code Monkey logo

Comments (13)

hisorange avatar hisorange commented on June 5, 2024

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.

rcaf avatar rcaf commented on June 5, 2024

I tested in 3 browsers: Chrome, Firefox, Safari.
The result is the same.

captura de pantalla 2015-12-29 a las 2 54 07 a m

from browser-detect.

hisorange avatar hisorange commented on June 5, 2024

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.

rosesonfire avatar rosesonfire commented on June 5, 2024

I am having the same problem. Could this issue be solved?

from browser-detect.

hisorange avatar hisorange commented on June 5, 2024

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.

lucidlemon avatar lucidlemon commented on June 5, 2024

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.

hisorange avatar hisorange commented on June 5, 2024

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.

BojanKogoj avatar BojanKogoj commented on June 5, 2024

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.

lucidlemon avatar lucidlemon commented on June 5, 2024

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.

BojanKogoj avatar BojanKogoj commented on June 5, 2024

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.

dzafel avatar dzafel commented on June 5, 2024

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.

hisorange avatar hisorange commented on June 5, 2024

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.

Mohammed-Daud avatar Mohammed-Daud commented on June 5, 2024

how to update browscap.ini file

from browser-detect.

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.