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
Comment #1
megan_m commentedIf 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.
Comment #2
jackalope commentedThanks for the tip--that change works for me too!
Comment #3
christiemade commentedThis 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');
Comment #4
bkonetzny commentedSeems to be a duplicate of #2171549: Can't dowload last Browscap.ini RC from http://browscap.org/.
Comment #5
rfayComment #6
w00 commentedJust my 2 cents worth, but the original instructions worked fine for me.
5110 records downloaded and counting...