(How to solve) Fatal error: Allowed memory size exhausted

I tried to automatically upgrade our blog today using the Upgrade link in the WordPress Dashboard, but it failed because of an error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate … in /wp-includes/http.php on line 1358

The “fatal error” might be a bit scary to see, but don’t worry because the solution is going to be easy.

Bytes exhausted?

Wordpress PHP Fatal Error: Allowed memory size exhausted tried to allocate bytes

The bytes figure may be different in the error you have: “8388608 bytes exhausted” (8 MB); “16777216 bytes exhausted” (16 MB); “33554432 bytes exhausted” (32 MB); to “67108864 bytes exhausted” (64 MB). All these figures simply represent the allowed php memory on your host’s server.

Which means the solution is to adjust this to a higher number. So if your current allowed php memory is 8 MB, double it to 16 MB. You can increase it to an even higher number but be wary because further increasing the php memory size could also cause performance issues on your blog. The default rule is to simply double the current allowed php memory size.

How to solve on a WordPress blog?

1. First, download a copy of your wp-config.php file from your server. Make sure you create a back-up copy which you can revert to just in case some problem crops up.

2. Open wp-config.php file and, on the second line, just right below the very first <?php line, add the following:


Again, you can change this 64M number to a number you want, but better to simply double the allowed php memory you currently have.

3. Save the file then upload back to your host. Things should go on smoothly from now on.

It worked for me, so it would most probably work for you too. Hope this tip helps.

About the Author

PSEi support seen at 6,200 and 6,000 amid weaker Peso

In a not-so-surprising move, the U.S. Federal Reserve (Fed) yesterday raised interest rates by 75 basis points (bps) or 0.75% in a bid to tame rising inflation in the United States. This was the third consecutive 0.75% rate hike by the Fed, which brings the federal funds rate, the central bank’s benchmark interest rate, to ... Read more

Official SWIFT Code of BDO, BPI, Metrobank, Philippine banks

When sending cash remittances or wire transfer to a bank account in the Philippines (such as BDO, BPI, Metrobank, Landbank, DBP, etc.), you’ll surely need the SWIFT Code of the bank. Look no further because you can find all the SWIFT Codes you need in this list! Make sure you’re using the right bank code ... Read more

How to Waive your Credit Card Annual Fee (BDO, BPI, Metrobank, RCBC, Citibank, UnionBank)

Without a doubt, one of the most annoying fees that credit cardholders have to pay is the annual fee. Majority of cardholders are familiar with this fee and majority of us likely pay this grudgingly year after year after year. In the case of my credit card with BPI (Bank of the Philippine Islands), I’m ... Read more

Why Filipinos do not become business owners or entrepreneurs

For a majority of Filipinos, entrepreneurship does not seem to be a typical, expected path. This is not surprising, considering that in school, students are primarily taught to become employees after graduation. Students train for years to become staff workers, reporting to a supervisor, and just waiting to receive their wages or salaries every month. ... Read more

My experience investing in Mutual Funds in the Philippines

I started investing in mutual funds when I was 22 years old. As an Overseas Filipino Worker (OFW) then, I was fortunate to be able to save some money at that young age because of my work abroad. One time while I was on vacation in the Philippines, I saw a large billboard in EDSA ... Read more

Income Tax Tables in the Philippines (2022)

The Philippines’ new tax reform bill, known as TRAIN or Tax Reform for Acceleration and Inclusion, was signed into law on December 19, 2017 and its implementation began on January 1, 2018. What are the new income tax rates under the TRAIN law? How will TRAIN affect income taxes of individuals and corporations? How is the ... Read more

PSE Stocks Performance under each Philippine President (1987-2021)

Did you know that Philippine stocks were able to achieve an astounding growth of 800% in a span of 30 years? From 1987 until 2018, the Philippine Stock Exchange index (PSEi) rose from 1,000 points to a peak of 9,000 points — generating a return of 800% over 30 years. (The PSEi is an index ... Read more

SSL 2022: Salary Increases for Teachers, Nurses, Gov’t Employees

Good news to all government employees! There’s a new round of salary increases beginning January 1, 2022! Millions of employees of the Philippine government — including public school teachers, nurses and staff of government hospitals, and workers in local and national government agencies, etc. — will be getting an automatic salary adjustment this 2022 under ... Read more

PSE Trading Hours in 2022: What time open, when closed?

Before you take the plunge into stock trading and investing, make sure you understand what stocks are and how the Philippine Stock Exchange (PSE) operates. Unlike other investments that are relatively safe, stock trading is risky and loss of money is a possibility. So before you deep dive into the exciting world of stock trading, ... Read more

Price Floor and Price Ceiling of PSE Stocks

Trading bands in the PSE come in two forms: Price Ceiling, or the upper price limit, and Price Floor, or the lower price limit.

5 thoughts on “(How to solve) Fatal error: Allowed memory size exhausted”

  1. I thinks that is what is on mind thats why up to now I have not upgaded my blog.

    Now I will be somewaht relieved and will try to upgrade within this week.



Leave a Comment