Out of memory errors
-
New thread, as requested. ??
On a WP site I am developing (PHP 5.3.20 with 128 MB of memory, WordPress 3.9.1, PHP Browser Detection 3.0), I see the following message:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /…/wp-content/plugins/php-browser-detection/lib/Browscap.php on line 864
When I delete the PHP Browser Detection plugin entirely and then reinstall and activate it, everything is fine. At least for a little while. Then, after a few days, the memory errors come back and the site dies.
It looks like the memory errors seem to crop up in the section of code where the local browscap.ini file is parsed. I notice that the browscap.ini file that comes with the plugin (Version=5027, Released=Thu, 24 Apr 2014 07:41:24 +0000) is 10.4 MB, while a newer one that appeared on my server (Version=5029, Released=Thu, 08 May 2014 07:17:44 +0000) is 13.7 MB. Is it possible that PHP is choking when it tries to explode() and parse files that big? Perhaps it’s too much for PHP with 128 MB of memory to handle?
Or is there something else that’s being cached and growing over time that I am not seeing?
- The topic ‘Out of memory errors’ is closed to new replies.