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(https://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 https://browscap.org/version’ 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(‘https://browscap…’, ‘/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
- The topic ‘Browscap problems’ is closed to new replies.