Hi,

I installed Browscap module in my local system. I called browscap_get_browser() in my custom module hook_init() function. It is returning the below array.

Array ( [useragent] => unrecognized [browser_name_pattern] => unrecognized )

If its the case, how can I detect a browser? Should I install any other files along with the module?

Comments

kirantej_p’s picture

Priority: Normal » Critical
calebtr’s picture

I had a similar issue. I had to clear the browscap cache and make sure that my browscap data was loaded by running cron.

aohrvetpv’s picture

Category: Feature request » Bug report
Status: Active » Postponed (maintainer needs more info)

To work, Browscap needs to download browser information from http://browscap.org at least once. Browscap automatically downloads the data as part of Drupal cron. Two ways to see if it has successfully downloaded data:
1. Browse to admin/config/system/browscap. If data has been downloaded, you should see a version number next to "Current browscap data version".
2. Check that the contents of your browscap database table are non-empty. It should be populated with a lot of browser information.

If you are still having problems, please let us know the results of those two checks.

aohrvetpv’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)