I have been trying to install the Browscap module on my system, but each time I try to enable it I get an error. I have tried this on another Drupal installation (although it admittedly uses the same database server) and experienced the same thing. The error I am receiving is the following:

Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\playground\includes\database\database.inc on line 2139

Any ideas on why this might be happening?

Comments

devin carlson’s picture

Component: Code » Miscellaneous
Category: bug » support
Priority: Critical » Normal
Status: Active » Closed (works as designed)

The Browscap user agent information database is quite large and importing it can take a while, especially on slow hardware.

You'll want to increase PHP'S max_execution_time in order to allow the import process to finish. Otherwise, you might want to wait for #1788720: Allow to change the URLs to use for importing useragent information which would allow you to be able to configure Browscap to use a more basic user agent database which would take less time to import.