Title: Fatal error: Allowed memory size
Last modified: August 24, 2016

---

# Fatal error: Allowed memory size

 *  [CrackingAce](https://wordpress.org/support/users/crackingace/)
 * (@crackingace)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/)
 * I’ve been struggling with this problem for months, searching forums and blogs
   but no result. Seems as though a lot of people have the same issue and are also
   struggling.
 * Does anyone have a solution? This error appears regularly both on site and in
   the admin area:
 * Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate
   6771453 bytes) in /public_html/wp-includes/functions.php on line 377
 * I’ve been deactivating and reactivating/replacing plugins to see if it’s a particular
   one, but it doesn’t seem to be that any one is the problem, but perhaps a combination.
   I can’t single out a culprit.

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

 *  [Lalit Nagrath](https://wordpress.org/support/users/laliz/)
 * (@laliz)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083457)
 * you are exhausting 268 mb of memory? what r u running? woocommerce?
 * what you should do is enable error logs and check them regularly
    [https://codex.wordpress.org/Debugging_in_WordPress](https://codex.wordpress.org/Debugging_in_WordPress)
 * another plugin i can recommend is p3 profiler to see if some plugin is slowing
   you down.
 *  Thread Starter [CrackingAce](https://wordpress.org/support/users/crackingace/)
 * (@crackingace)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083477)
 * Just a gaming/entertainment blog. Fairly image heavy on some posts but not sure
   if that would make a huge difference.
 *  [Jason G.](https://wordpress.org/support/users/jggeorgebellsouthnet/)
 * (@jggeorgebellsouthnet)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083511)
 * @ CrackingAce
    You could also try using a CDN for your media (image files) as
   well as reviewing your plugins. Also, I would maybe check to see if your wp-config.
   php file includes the following: define(‘WP_MEMORY_LIMIT’, ‘256MB’); This allows
   WordPress to use more PHP memory. Though, you may have allocated enough already.
   Lastly, I might research wp-includes/functions.php; you may just try replacing
   your wp-includes folder. Hope this helps!
 *  [Lalit Nagrath](https://wordpress.org/support/users/laliz/)
 * (@laliz)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083516)
 * you need to see what is causing so much memory usage. if i am right this 256mb
   used is just by wordpress (suballoted to process php?) and memory usage by Apache
   etc isnt counted in this, so you need to optimize Php and your wordpress installation/
   themes and plugins.
 * start with your database and enable slow queries (login via phpmyadmin). optimize
   the database too.Enabling caching is a good idea.also keep all your have wordpress
   and plugins/themes up to date.
 * you should try to run the p3 profiler plugin i mentioned.
 *  [MarkRH](https://wordpress.org/support/users/markrh/)
 * (@markrh)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083523)
 * Dang… mine uses like 42MB at most, on the admin backend.
 * 256mb with a image heavy site.. hmmm wonder if something is causing PHP to load
   the images in to memory?
 *  Thread Starter [CrackingAce](https://wordpress.org/support/users/crackingace/)
 * (@crackingace)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083596)
 * Thanks for the responses.
 * I used P3 Plugin already to see if anything might have been causing the problem.
 * I’ve deactivated several plugins that I was using and whittled it down to just
   the ones that I absolutely need. I previously thought it may have been Jetpack,
   or Bulletproof Security, or one of the social media autoposter plugins. They 
   are all now deactivated and the error is still present.
    The only plugin that
   P3 now shows to be potentially high is NextGen Gallery. I have asked their programmers
   for advice and they seem pretty sure it’s not a problem with their plugin, but
   so far no result finding the actual cause.
 * I’m don’t have much technical knowledge with these kinds of things so I wouldn’t
   have the first clue on how to do things like optimising php or what to look for
   in functions.php. I’m using WordPress because it’s supposed to make things straight
   forward for people like me! Haha.
 *  [Lalit Nagrath](https://wordpress.org/support/users/laliz/)
 * (@laliz)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083766)
 * anything in error log?
 * i will suggest to take a backup of existing files/database and do a manual upgrade
   
   [https://codex.wordpress.org/Updating_WordPress#Manual_Update](https://codex.wordpress.org/Updating_WordPress#Manual_Update)
 * be aware that theme setting might go away so take backup of that too.
 * this is to make sure wordpress is not causing this memory issue.
    if the issue
   persist , will advise to revert to default theme and disable all plugins for 
   time being.
 *  Thread Starter [CrackingAce](https://wordpress.org/support/users/crackingace/)
 * (@crackingace)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083767)
 * In between a huge amount of the above error are some instances of:
 * PHP Fatal error: Call to undefined function load_textdomain() in /home/cracking/
   public_html/wp-admin/includes/admin.php on line 15
 * PHP Fatal error: Call to undefined function wp() in /home/cracking/public_html/
   wp-blog-header.php on line 14
 * PHP Fatal error: Call to undefined function apply_filters() in /home/cracking/
   public_html/xmlrpc.php on line 80
 * Looking at it myself, I have no idea what could be wrong. I don’t know what I’m
   looking for.
 *  [Lalit Nagrath](https://wordpress.org/support/users/laliz/)
 * (@laliz)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083768)
 * can you upload all of the error log to pastebin.com as the message you have posted
   isnt much useful.
 * also if you have support at hosting company, let your server guys know about 
   this issue, they might be able to fix it quickly as they monitor their server
   on regular basis

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

The topic ‘Fatal error: Allowed memory size’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [Lalit Nagrath](https://wordpress.org/support/users/laliz/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-74/#post-6083768)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
