WordPress Memory Exhausted Error

Andrei Iordache

Andrei Iordache

WordPress Developer

? I Help People Get Found Online | WordPress Development, Core Web Vitals, Security&Maintenance

WordPress Memory Exhausted Error

Exhausted memory error happens when a script of WordPress becomes exhausted because of limited memory. When this error occurs, a message will be shown on the screen with memory size and the error type.

Few examples of this WordPress Memory Exhausted Errors:

  • allowed memory size of 33554432 bytes exhausted
  • allowed memory size of bytes exhausted php

Solving the Memory Exhausted Error Issue


First of all, make sure your hosting plan is good enough for the size of your site. Let’s say you have a big WordPress site, with hundreds of posts and hundreds of unique visitors per day. If you host this kind of site on a basic and shared hosting plan, you will encounter this error very often. Make sure you have a powerful hosting plan.

Second, you can try to increase the memory limit


Editing wp-config.php file

To edit this file, you need access to your server via FTP. The file can be found directly in the root of your WordPress site.

Open the file in your favorite editor. At the very bottom, right before the line that says, “Happy Blogging”, add the following line:

define('WP_MEMORY_LIMIT', '1G');

WordPress memory may be handled differently, that’s why you need to set this in any case.

Editing your PHP.ini file

If you have access to the PHP.ini on your server, please look for the following setting and update it as follows:

memory_limit = 1G;

Editing your .htaccess file

To edit this file, you need access to your server via FTP. The file can be found directly at the root of your WordPress site.

Open the file in your favorite editor and add the following line at the top of it:

php_value memory_limit 1G

Submit Your Guest Post

Previous Post
WordPress Error Establishing a Database Connection
Next Post
WordPress White Screen of Death
Lusi StudiosLusi Studios
15:32 22 Jun 22
Andrei did an amazing job! He helped in a very rushed time and he excelled at everything. Thanks again!
I am grateful and I would to thank Websites Seller for their support in site recovery and site transfer. Websites Seller just saved my business. Thank you!
Wouter GhysensWouter Ghysens
11:52 10 Sep 21
Looking for a Wordpress transfer from site A to site B, I found back Andrei from Wesites Seller on Google.He was very proactive in his approach, came with hundreds of ideas and lifetime experiences from other migrations. He knows the wordpress, the hosting and php database as the back of his pocket.And we worked out this migration very smooth. Together we solved it, and myself and my business are very pleased with his approach.100% recommendation & kudo's from out of Belgium!
Ioachim CiobanuIoachim Ciobanu
18:39 14 Jul 21
Websites Seller built my resume site. Deliverables were quickly completed, and I was asked for my feedback at each stage of development. All feedback I gave was implemented in a short time.Another great thing is that he comes with smart solutions, regarding stuff which I didn't initially think of (site security, Google site speed optimization and so on). Basically, he was great, staying in touch, keeping me updated and paid attention to what was most important for my site.Overall, I am very happy with the work done. I highly recommend this developer!
K CollinsK Collins
09:11 19 May 21
I needed help with website speed - to improve my core web vitals - without compromising the usability of my site. Andrei was extremely responsive, proactive and fast. And more importantly, he increased by website speed. Highly recommend him, and I will be using him going forward on all my projects.
js_loader

Submit Your Guest Post

Services

WordPress Website Maintenance Services

WordPress Maintenance Services

WordPress website maintenance service that provides cloud backups, emergency support, weekly website updates, speed and many more.

sally

WordPress Migration Service

Safely transfer your WordPress website to a new location for $75. … Migrate your website to its new host.

lawyer-office

Lawyer Web Design

We specializes in website design, Internet marketing and SEO for lawyers and attorneys throughout the Europe and US.