PHP says the site ran out of memory

  • Home PHP says the site ran out of memory
PHP says the site ran out of memory

PHP says the site ran out of memory

December 2, 2026

A page on the site stops loading, or the dashboard will not open, and the message talks about memory. PHP did not fill the disk. It hit a ceiling on how much memory one page request is allowed to use. The rest of the site can still open. The computer on your desk is a different machine, with its own memory, and it is not what this message is measuring.

The line you want looks like this: allowed memory size exhausted, followed by a number of bytes and the name of a file. Visitors sometimes never see that line. They see a short note that there has been a critical error, and the memory line is only in the host error log. Read the log once. The file path is the useful part. The folder name under your plugins folder, or under your themes folder, is the add-on that was running when PHP stopped. You do not need the rest of the path.

What usually sets it off

It often starts in the hour after a plugin or theme update. A backup, a security scan, or an import can do the same thing while the job is running, then stop once the job is finished. One heavy page can fail on its own: a shop page, a calendar, or a builder page that loads every picture. A plain page such as your contact page may still open. That split is a clue. The limit is being hit by what that one page loads, not by the whole site.

The host sets the ceiling. A line in the WordPress config file can ask for more, and the host ceiling still wins. If the ceiling is small, a normal shop or a page builder will cross it. Ask the host what the PHP memory limit is before you start taking the site apart.

Turn off the add-on that the log names

If you can still open the dashboard, open Plugins and deactivate the one named in the log. Reload the page that failed. If the dashboard itself will not open, use the host file manager. Find that plugin folder and rename it. Add -off to the end of the folder name. Renaming turns the plugin off without deleting it. Reload the site in a private window.

When the site opens, leave that plugin off until you know why it needed that much memory. Update it only if the author has a newer copy that fixes the problem. If the same plugin fails again on an ordinary page, replace it. Do not keep raising the memory number to hide a plugin that is stuck.

A theme can be the one named in the log. You cannot rename the active theme away and have no theme. Switch to a default theme only if you can open the dashboard. If you cannot, ask the host to do that switch, or rename the theme folder and accept that the site will look unstyled until a theme is active again. Write down the theme name first.

A job that is still running

If the log names a backup plugin, a security scanner, or an import tool, check whether that job is still going. Let a backup finish, or pause the scan, then reload. Those jobs ask for a large amount of memory for a few minutes. Deactivating the plugin in the middle of a backup can leave a half-written backup file. Wait, or use the plugin's own stop button, before you rename anything.

One page, not the whole site

Open a simple page that does not use the builder. If that page loads and the heavy page does not, look at what the heavy page pulls in. A slider that loads every picture in the library, or a product list that loads every product at once, will cross a normal limit. Show fewer items on that page. Raising the limit and leaving the page unchanged only postpones the next failure, and the next one may take the dashboard down with it.

How much to ask the host for

For a small site with a few plugins, 128M is often enough. A shop or a page builder is more comfortable at 256M. Ask the host to raise the PHP memory limit for this account to that, and ask them to say what the ceiling is after the change. WordPress also has its own request, WP_MEMORY_LIMIT, inside wp-config.php. That line cannot go past the host ceiling. Do not set either number to 1G or 2G. A page that needs that much memory on an ordinary visit has a plugin problem, not a small ceiling.

Leave error messages off the public site. Visitors do not need to see file paths. The hosting panel already keeps a log. Cause the failure once, open the newest line, and stop. You do not need a long log, and you do not need to turn debugging on for the whole day.

Once the site stays open, write down the plugin you turned off and the limit the host confirmed. The next update will be easier to read if the same message comes back.

More help here, https://www.facebook.com/groups/1690194646047206

To Make a Request For Further Information

TESTIMONIALS

What Our Clients
Are Saying About Us

Get a
Free Consultation


LATEST ARTICLES

See Our Latest
Blog Posts

PHP says the site ran out of memory
December 2, 2026

PHP says the site ran out

The homepage opens. Other pages say they were not found
December 1, 2026

The homepage opens. Other

Clear the old page after you save
November 30, 2026

Clear the old page after

Intuit Mailchimp