Title: Memory exhaustion
Last modified: October 3, 2017

---

# Memory exhaustion

 *  Resolved [Alberto](https://wordpress.org/support/users/albiob/)
 * (@albiob)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/memory-exhaustion-2/)
 * Hello,
    I’m getting this error when any page is loaded on my website:
 * [Tue Oct 03 14:02:29.293348 2017] [fcgid:warn] [pid 13383] [client xxx:51001]
   mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted(
   tried to allocate 445 bytes) in /home/xxx/public_html/wp-content/plugins/wp-statistics/
   vendor/browscap/browscap-php/src/phpbrowscap/Browscap.php on line 998, referer:
   [https://xxx.xx/?s=telaio&product_cat=0&post_type=product](https://xxx.xx/?s=telaio&product_cat=0&post_type=product)
   [
   Tue Oct 03 14:02:32.053792 2017] [fcgid:warn] [pid 14302] [client xxx:51002] 
   mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted(
   tried to allocate 4 bytes) in /home/xxx/public_html/wp-content/plugins/wp-statistics/
   vendor/browscap/browscap-php/src/phpbrowscap/Browscap.php on line 769, referer:
   [https://xxx.xx/wp-admin/post.php?post=4223&action=edit](https://xxx.xx/wp-admin/post.php?post=4223&action=edit)…
 * Plugin version 12.1.2
 * Thanks

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

 *  [Taim786](https://wordpress.org/support/users/taim786/)
 * (@taim786)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/memory-exhaustion-2/#post-9608000)
 * This question has been asked so many times as this is very common error. You 
   might get the solution within few minutes after searching on google. Well, you
   can easily [increase wordpress php memory limit](https://www.webxen.com/kb/wordpress-fatal-error-allowed-memory-size-of-67108864-bytes-exhausted/)
   by placing this piece of code into wp-config.php file of wordpress:
 * define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
 * Make sure you place that code after the line which says : /* That’s all, stop
   editing! Happy blogging. */
 * Source: [https://www.webxen.com/kb/wordpress-fatal-error-allowed-memory-size-of-67108864-bytes-exhausted/](https://www.webxen.com/kb/wordpress-fatal-error-allowed-memory-size-of-67108864-bytes-exhausted/)
 *  Thread Starter [Alberto](https://wordpress.org/support/users/albiob/)
 * (@albiob)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/memory-exhaustion-2/#post-9608017)
 * As you can see from the logs above, error occours when WP Statistics tries to
   allocate 268 Mb of memory. In fact memory limit on my website is already set 
   at 256 M.

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

The topic ‘Memory exhaustion’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Alberto](https://wordpress.org/support/users/albiob/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/memory-exhaustion-2/#post-9608017)
 * Status: resolved