Why Increasing the PHP Memory Limit in WordPress Might Not Take Effect

>Why Increasing the PHP Memory Limit in WordPress Might Not Take Effect
  • stop

I’ve seen this issue a lot of times on the WordPress forum.

A lot of people are getting the “memory exhausted” error, and then they try increasing the WordPress PHP memory limit, but without success.

This is how the error would look like:

Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to allocate 123742 bytes) in /home/example/public_html/wordpress/wp-admin/includes/dashboard.php on line 482

You’ve increased the PHP memory limit in WordPress, but you’re still getting the error

In almost all cases, this happens because your hosting provider won’t allow you to increase the PHP memory limit beyond a certain point.

For example, if they set the maximum amount to 64MB on the server’s end, and you try to increase it to 128MB, the change won’t take effect; you’re stuck with 64MB.

This mostly happens on Shared environments, so you’ll most likely have to upgrade your hosting package to Cloud, VPS or Dedicated.

Or you can make sure that your WordPress website is properly optimized, and you’re not using a lot of plugins (especially poorly developed ones), which are “chewing” on your resources. The fewer plugins you have, the better.

Before upgrading your package, I recommend reading the information provided by the hosting provider, or contact them to see what your options are.

That’s a wrap

I hope you found the post helpful.

If you have any questions, please drop a comment, contact us or message us on Facebook.

Don’t forget to share the post with your friends!

WP Rocket - WordPress Caching Plugin
By |2018-11-06T05:50:41+00:00November 7th, 2017|WordPress|0 Comments

Leave A Comment

SPECIAL OFFER!

Up to 98% OFF on domains and WordPress hosting
Offers end on January 17 at 23:59 EST!
NameCheap's "Happy New Business" sale has started and it offers discounts up to 98%!

If you want to buy a domain, shared or managed WordPress hosting, or even SSL certificates and VPN, then now's your chance!

 
Disclosure: If you make a purchase using this affiliate link, I might receive a commission from NameCheap, at no additional cost to you! Thank you!
close-link