Title: Browscap problems
Last modified: August 22, 2016

---

# Browscap problems

 *  Resolved [albyb](https://wordpress.org/support/users/albyb/)
 * (@albyb)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/browscap-problems/)
 * Hi
 * I’ve installed PHP Browser Detection plugin, and sometimes, I’cannot understand
   why, when open my site I get the error:
 * Warning: file_get_contents([http://browscap.org/version](http://browscap.org/version))[
   function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/
   1.0 403 Forbidden in /membri/styleit/wp-content/plugins/php-browser-detection/
   lib/Browscap.php on line 1004
 * Warning: touch() [function.touch]: Utime failed: Operation not permitted in /
   membri/styleit/wp-content/plugins/php-browser-detection/lib/Browscap.php on line
   293
 * Fatal error: Uncaught exception ‘phpbrowscap\Exception’ with message ‘Bad datetime
   format from [http://browscap.org/version&#8217](http://browscap.org/version&#8217);
   in /membri/styleit/wp-content/plugins/php-browser-detection/lib/Browscap.php:
   895 Stack trace: #0 /membri/styleit/wp-content/plugins/php-browser-detection/
   lib/Browscap.php(851): phpbrowscap\Browscap->_getRemoteMTime() #1 /membri/styleit/
   wp-content/plugins/php-browser-detection/lib/Browscap.php(518): phpbrowscap\Browscap-
   >_getRemoteIniFile(‘[http://browscap…&#8217](http://browscap…&#8217);, ‘/membri/
   styleit…’) #2 /membri/styleit/wp-content/plugins/php-browser-detection/lib/Browscap.
   php(289): phpbrowscap\Browscap->updateCache() #3 /membri/styleit/wp-content/plugins/
   php-browser-detection/php-browser-detection.php(56): phpbrowscap\Browscap->getBrowser(
   NULL, true) #4 /membri/styleit/wp-content/plugins/php-browser-detection/php-browser-
   detection.php(194): php_browser_info() #5 /membri/styleit/wp-content/themes/wpex-
   twenties/functions/posts-per-page.php(23): is_mobile() #6 [internal function]:
   wpex_pre_get_posts(Object(WP_Query)) #7 /m in /membri/styleit/wp-content/plugins/
   php-browser-detection/lib/Browscap.php on line 895
 * I replace browscap.ini in cache folder and then site works normally; but I’d 
   like to avoid this problem.
 * Any suggestions?
    Thanks
 * [https://wordpress.org/plugins/php-browser-detection/](https://wordpress.org/plugins/php-browser-detection/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/browscap-problems/#post-5171855)
 * The 403 Forbidden part of the first error makes me think its a permissions problem.
   The other errors are likely being caused by the first one.
 *  Plugin Author [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/browscap-problems/#post-5172002)
 * Please test the latest version, 3.1.2.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Browscap problems’ is closed to new replies.

 * ![](https://ps.w.org/php-browser-detection/assets/icon-256x256.png?rev=999338)
 * [PHP Browser Detection](https://wordpress.org/plugins/php-browser-detection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-browser-detection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-browser-detection/)
 * [Active Topics](https://wordpress.org/support/plugin/php-browser-detection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-browser-detection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-browser-detection/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/browscap-problems/#post-5172002)
 * Status: resolved