Effective March 30, 2014, the URL to retrieve the browscap data has been changed. The old one is now GONE! This means any new installations of Browscap module will not work; sites will likely have a runtime error similar to the one that I got from my theme:

Notice: Undefined index: ismobiledevice in at_get_browser() (line 217 of /var/www/html/sites/all/themes/adaptivetheme/at_core/inc/get.inc).

I wasn't able to update the documentation page for this module so I'm filing a support request here because there will be others who will have the same problem I did!

To update the URLs, modify this module's import.inc and change the following 2 lines:

$current_version = drupal_http_request('http://tempdownloads.browserscap.com/versions/version-number.php');

to

$current_version = drupal_http_request('http://browscap.org/version-number');

and

$browscap_data = drupal_http_request('http://tempdownloads.browserscap.com/stream.php?BrowsCapINI');

to

$browscap_data = drupal_http_request('http://browscap.org/stream?q=BrowsCapINI');

Comments

megan_m’s picture

If you're getting the error "WD browscap: Couldn't check version: Gone", this is most likely the problem.

I can confirm that the above changes work.

jackalope’s picture

Thanks for the tip--that change works for me too!

christiemade’s picture

This fixed the "WD browscap: Couldn't check version: Gone" error for me, but resulted in a parsing error.

Parsing error was fixed by changing this line:
$browscap_data = drupal_http_request('http://browscap.org/stream?q=BrowsCapINI');
To this:
$browscap_data = drupal_http_request('http://browscap.org/stream?q=PHP_BrowsCapINI');

rfay’s picture

Category: Support request » Bug report
Status: Active » Closed (duplicate)
w00’s picture

Just my 2 cents worth, but the original instructions worked fine for me.

5110 records downloaded and counting...