@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.
Thanks all. FYI we’re working on an update to permanently resolve this issue. Cheers
Great! I’m swamped but will try to test on Friday afternoon or evening.
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.
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.
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!
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?
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?
Just released a new version which may fix this. Let us know, also can you open a new thread since this is anew issue?