• Resolved hommealone

    (@hommealone)


    Hey Folks,

    With Chrome Browser, PHP Browser Detection plugin (Version 3.1.3) is now reporting the version of Chrome as “0.0”. It correctly reports the browser to be Chrome, but the version is always showing 0.0.

    Other browsers are reporting their versions correctly. I’ve tried with Firefox, Safari and IE; all report version correctly.

    I’ve tried on multiple different computers and devices with the same results. I’ve tried with the plugin installed on different websites with the same results. I’ve tried it on a sandbox development website with basically nothing else installed and get the same problem there:
    sandbox.insitewebsite.com

    (The first line of text in the site there should report browser and version.)

    When I previously inquired about ALL browsers reporting version as 0.0, you advised to uninstall and re-install PHP Browser Detection plugin. I’ve done that but the problem persists.

    Any ideas what might be going on?

    Thanks!

    https://www.ads-software.com/plugins/php-browser-detection/

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter hommealone

    (@hommealone)

    @majick:

    Thanks for noticing – and posting – that older versions of Chrome show the version number even when the most recent shows 0.0.

    I have an application that displays the visitor’s browser name and version on a webpage. Showing that “Your browser version is 0.0” looks bad, even if it doesn’t mess anything up. Now, when PHP Browser Detection plugin is not up-to-date, I can at least display “Your browser version is current” using something like:

    // make sure other plugins are loaded first...
    if(function_exists('get_browser_name')) {
    	$myplugin_browser_name = get_browser_name();
    };
    if(function_exists('get_browser_version')) {
    	$myplugin_browser_version = get_browser_version();
    };
    if ( ($myplugin_browser_version=='0.0')&&($myplugin_browser_name=='Chrome') ) {
    	$myplugin_browser_version = 'current';
    };

    I imagine, though, that if Chrome 45 comes out before they update PHP Browser Detection, then both Chrome 44 and Chrome 45 will both result in “current”, unfortunately. Hopefully it won’t take that long.

    Plugin Author Mindshare Labs, Inc.

    (@mindshare)

    Thanks all. FYI we’re working on an update to permanently resolve this issue. Cheers

    Plugin Author Mindshare Labs, Inc.

    (@mindshare)

    I just pushed a new version, can you test this one?

    https://github.com/mindsharestudios/php-browser-detection/archive/master.zip

    Thread Starter hommealone

    (@hommealone)

    Great! I’m swamped but will try to test on Friday afternoon or evening.

    Thread Starter hommealone

    (@hommealone)

    Not working.

    I’ve installed the version you linked to above (in a clean, up-to-date, sandbox site with almost nothing else installed) and it is not working. It reports ‘Default Browser’ and version 0.0 for both Chrome and Firefox.

    I also tried installing the new version 3.1.6 from the WordPress repository, with the same results.

    Plugin Author Mindshare Labs, Inc.

    (@mindshare)

    It is working in our tests (confirmed again just now with a fresh install). So unless you can provide more info we can’t really troubleshoot this further.

    Thread Starter hommealone

    (@hommealone)

    What info do you need?

    get_browser_name() returns Default Browser
    (for both Chrome v 44.0 and FF v 40.0.3)

    get_browser_version() returns 0.0
    (same browsers)

    This is installed on an almost-clean version of WP 4.3 with theme: 2015

    Installation is on a shared hosting provider.

    define( 'WP_MEMORY_LIMIT', '128M' );

    Let me know what other info you need and I’ll give you any info you need.

    This worked fine with earlier version of your plugin and still does (up to 3.1.4, which reports Chrome version 0.0).

    I tried un-installing and re-installing your plugin to try to force retrieval of a new browscap file. This made no difference.

    What else can I tell you?

    Thanks!

    Plugin Author Mindshare Labs, Inc.

    (@mindshare)

    Not sure, but when we test we do not get these results. So there must be something going wrong that is specific to your setup.

    Can you provide a link / or email me an admin login for you site (support AT mindsharelabs DOT com)?

    It seems likely you are not completely removing the old plugin (and the old DB is getting used). Can you double check that the entire old version is deleted (manually delete the whole plugin folder) and then try installing the latest version from WP.org?

    Thread Starter hommealone

    (@hommealone)

    This problem has become a nearly inconsequential one but I am still curious about it.

    This is now an issue only on a computer running Windows XP. Others do not exhibit this issue.

    Curiously – to me, anyway – on those machines, it not only doesn’t return info about the operating system but doesn’t return the browser and browser version either.

    <pre>Array
    (
        [browser_name] => Mozilla/5.0 (Windows NT 5.1; rv:40.0) Gecko/20100101 Firefox/40.0
        [browser_name_regex] => ^.*$
        [browser_name_pattern] => *
        [Parent] => DefaultProperties
        [Comment] => Default Browser
        [Browser] => Default Browser
        [isMobileDevice] =>
        [isTablet] =>
        [Version] => 0.0
        [Platform] => unknown
        [Device_Type] => unknown
    )
    </pre>

    For further testing, I tried to overwrite browscap.ini in the plugin’s cache folder with the standard version rather than the lite version. (“Default Browser” only started showing up with the switch to the lite version, I think.) That however doesn’t seem to have changed anything. Is there anything more I’d need to do than overwriting that single file, if I wanted to test it with the standard browscap.ini file?

    Plugin Author Mindshare Labs, Inc.

    (@mindshare)

    Just released a new version which may fix this. Let us know, also can you open a new thread since this is anew issue?

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Chrome version shows 0.0’ is closed to new replies.