Title: PHP Fatal error: Allowed memory
Last modified: August 21, 2016

---

# PHP Fatal error: Allowed memory

 *  [askmediy](https://wordpress.org/support/users/askmediy/)
 * (@askmediy)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-allowed-memory-1/)
 * Hi everyone. I’ve been getting this error in my error log all the time now. Not
   sure how but it’s only been for a few weeks. I’ve my mem set at a whopping 128m
   via php.ini and config. I’ve even re-installed class-phpmailer.php..
 * Any ideas ?
 * This is the whole error I’m getting
 * PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate
   57023223 bytes) in /home/askmediy/public_html/wp-includes/class-phpmailer.php
   on line 1892

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-allowed-memory-1/#post-4667288)
 * Try [increasing the memory available to PHP](http://wordpress.org/support/topic/253495#post-1017842).
 *  Thread Starter [askmediy](https://wordpress.org/support/users/askmediy/)
 * (@askmediy)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-allowed-memory-1/#post-4667299)
 * Thank you. However like I said before I’ve done all that and it has been in place
   for a long time now. This error is all new for whatever reason
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-allowed-memory-1/#post-4667300)
 * Well, judging by the error above, you obviously have not raised the PHP memory
   allocation sufficiently. What did you raise it to? 512M?
 *  Thread Starter [askmediy](https://wordpress.org/support/users/askmediy/)
 * (@askmediy)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-allowed-memory-1/#post-4667303)
 * Really. I have always had it set at 128M. Do you really think I need to raise
   it even more than 128M ? What would you say would be a safe #. Don’t want to 
   over tax my server. If that even makes any sense.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-allowed-memory-1/#post-4667384)
 * You currently have 256M of PHP memory and that is not enough, so the next step
   would be to raise it to 512M.

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-allowed-memory-1/#post-4667384)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
