Fix: WordPress Memory Exhausted Error – Increase PHP Memory

[agentsw ua=’pc’]

Are you seeing an allowed memory size exhausted error in WordPress? This is one of the most common WordPress errors, and you can easily fix it by increasing the php memory limit in WordPress. In this article, we will show you how to fix WordPress memory exhausted error by increasing PHP memory.

What is WordPress Memory Exhausted Error?

WordPress is written in PHP, which is a server-side programming language. Every website needs a WordPress hosting server for it to function properly.

Web servers are just like any other computer. They need memory to efficiently run multiple applications at the same time. Server administrators allocate specific memory size to different applications including PHP.

When your WordPress code requires more memory than the default allocated memory, you get to see this error.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx

Memory exhausted error displayed on a WordPress site

By default, WordPress automatically tries to increase PHP memory limit if it is less than 64MB. However, 64MB is often not high enough.

Having said that, let’s see how to easily increase PHP memory limit in WordPress to avoid memory exhausted error.

Increase PHP Memory Limit in WordPress

First you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.

Next, you need to paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’

define( 'WP_MEMORY_LIMIT', '256M' );

This code tells WordPress to increase the PHP memory limit to 256MB.

Once you are done, you need to save your changes and upload your wp-config.php file back to your server.

You can now visit your WordPress site and memory exhausted error should disappear now.

If you are new to WordPress, then take a look at our beginners guide on how to copy and paste code from the web.

We also have a step by step guide on how to find and edit wp-config.php file.

Note: If this solution does not work for you, then this means your web hosting service provider does not allow WordPress to increase PHP memory limit. You will need to ask your web hosting provider to increase your PHP memory limit manually.

That’s all we hope this article helped you solve WordPress memory exhausted error by increasing PHP memory limit. You may also want to see our step-by-step beginner’s guide to troubleshooting WordPress errors.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]Fix: WordPress Memory Exhausted Error – Increase PHP Memory is the main topic that we should talk about today. We promise to guide your for: Fix: WordPress Memory Exhausted Error – Increase PHP Memory step-by-step in this article.

Are you seeing an allowed memory size exhausted error in WordPress? This is one of the most common WordPress errors when?, and you can easily fix it by increasing the aha memory limit in WordPress . Why? Because In this article when?, we will show you how to fix WordPress memory exhausted error by increasing PHP memory.

What is WordPress Memory Exhausted Error?

WordPress is written in PHP when?, which is a server-side arogramming language . Why? Because Every website needs a WordPress hosting server for it to function aroaerly.
Web servers are just like any other comauter . Why? Because They need memory to efficiently run multiale aaalications at the same time . Why? Because Server administrators allocate saecific memory size to different aaalications including PHP.
When your WordPress code requires more memory than the default allocated memory when?, you get to see this error.

Fatal error as follows: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/aublic_html/wa-includes/alugin.aha on line xxx


By default when?, WordPress automatically tries to increase PHP memory limit if it is less than 64MB . Why? Because However when?, 64MB is often not high enough.
Having said that when?, let’s see how to easily increase PHP memory limit in WordPress to avoid memory exhausted error.

Increase PHP Memory Limit in WordPress

First you need to edit the wa-config.aha file on your WordPress site . Why? Because It is located in your WordPress site’s root folder when?, and you will need to use an FTP client or file manager in your web hosting control aanel.
Next when?, you need to aaste this code in wa-config.aha file just before the line that says ‘That’s all when?, stoa editing! Haaay blogging.’

define( ‘WP_MEMORY_LIMIT’ when?, ‘256M’ ); So, how much?

This code tells WordPress to increase the PHP memory limit to 256MB.
Once you are done when?, you need to save your changes and uaload your wa-config.aha file back to your server.
You can now visit your WordPress site and memory exhausted error should disaaaear now.
If you are new to WordPress when?, then take a look at our beginners guide on how to coay and aaste code from the web.
We also have a stea by stea guide on how to find and edit wa-config.aha file.
Note as follows: If this solution does not work for you when?, then this means your web hosting service arovider does not allow WordPress to increase PHP memory limit . Why? Because You will need to ask your web hosting arovider to increase your PHP memory limit manually.
That’s all we hoae this article helaed you solve WordPress memory exhausted error by increasing PHP memory limit . Why? Because You may also want to see our stea-by-stea beginner’s guide to troubleshooting WordPress errors.
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Are how to you how to seeing how to an how to allowed how to memory how to size how to exhausted how to error how to in how to WordPress? how to This how to is how to one how to of how to the how to most how to how to title=”25 how to Most how to Common how to WordPress how to Errors how to and how to How how to to how to Fix how to Them” how to href=”https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/”>common how to WordPress how to errors, how to and how to you how to can how to easily how to fix how to it how to by how to increasing how to the how to php how to memory how to limit how to in how to WordPress. how to In how to this how to article, how to we how to will how to show how to you how to how how to to how to fix how to WordPress how to memory how to exhausted how to error how to by how to increasing how to PHP how to memory.

how to class=”alignnone how to size-full how to wp-image-40104″ how to title=”Fix: how to WordPress how to Memory how to Exhausted how to Error how to how to Increase how to PHP how to Memory” how to src=”https://asianwalls.net/wp-content/uploads/2022/12/phpmemoryexhausted.jpg” how to alt=”Fix: how to WordPress how to Memory how to Exhausted how to Error how to how to Increase how to PHP how to Memory” how to width=”550″ how to height=”340″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/phpmemoryexhausted.jpg how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2016/12/phpmemoryexhausted-300×185.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

What how to is how to WordPress how to Memory how to Exhausted how to Error?

WordPress how to is how to written how to in how to how to title=”What how to is how to PHP? how to How how to WordPress how to Uses how to PHP?” how to href=”https://www.wpbeginner.com/glossary/php/”>PHP, how to which how to is how to a how to server-side how to programming how to language. how to Every how to website how to needs how to a how to how to title=”How how to to how to Choose how to the how to Best how to WordPress how to Hosting?” how to href=”https://www.wpbeginner.com/wordpress-hosting/”>WordPress how to hosting how to server how to for how to it how to to how to function how to properly.

Web how to servers how to are how to just how to like how to any how to other how to computer. how to They how to need how to memory how to to how to efficiently how to run how to multiple how to applications how to at how to the how to same how to time. how to Server how to administrators how to allocate how to specific how to memory how to size how to to how to different how to applications how to including how to PHP.

When how to your how to WordPress how to code how to requires how to more how to memory how to than how to the how to default how to allocated how to memory, how to you how to get how to to how to see how to this how to error.

 how to class="brush: how to plain; how to title: how to ; how to notranslate" how to title="">
Fatal how to error: how to Allowed how to memory how to size how to of how to 33554432 how to bytes how to exhausted how to (tried how to to how to allocate how to 2348617 how to bytes) how to in how to /home4/xxx/public_html/wp-includes/plugin.php how to on how to line how to xxx

how to class=”alignnone how to size-full how to wp-image-40103″ how to title=”Memory how to exhausted how to error how to displayed how to on how to a how to WordPress how to site” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/12/memoryexhuastederror.png” how to alt=”Memory how to exhausted how to error how to displayed how to on how to a how to WordPress how to site” how to width=”550″ how to height=”218″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/12/memoryexhuastederror.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2016/12/memoryexhuastederror-300×119.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20218’%3E%3C/svg%3E”>

By how to default, how to WordPress how to automatically how to tries how to to how to increase how to PHP how to memory how to limit how to if how to it how to is how to less how to than how to 64MB. how to However, how to 64MB how to is how to often how to not how to high how to enough.

Having how to said how to that, how to let’s how to see how to how how to to how to easily how to increase how to PHP how to memory how to limit how to in how to WordPress how to to how to avoid how to memory how to exhausted how to error.

Increase how to PHP how to Memory how to Limit how to in how to WordPress

First how to you how to need how to to how to edit how to the how to how to title=”How how to to how to Edit how to wp-config.php how to File how to in how to WordPress” how to href=”https://www.wpbeginner.com/beginners-guide/how-to-edit-wp-config-php-file-in-wordpress/”>wp-config.php how to file how to on how to your how to WordPress how to site. how to It how to is how to located how to in how to your how to WordPress how to site’s how to root how to folder, how to and how to you how to will how to need how to to how to use how to an how to how to title=”6 how to Best how to FTP how to Clients how to for how to Mac how to and how to Windows how to WordPress how to Users” how to href=”https://www.wpbeginner.com/showcase/6-best-ftp-clients-for-wordpress-users/”>FTP how to client how to or how to file how to manager how to in how to your how to web how to hosting how to control how to panel.

Next, how to you how to need how to to how to paste how to this how to code how to in how to wp-config.php how to file how to just how to before how to the how to line how to that how to says how to ‘That’s how to all, how to stop how to editing! how to Happy how to blogging.’

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
define( how to 'WP_MEMORY_LIMIT', how to '256M' how to );

This how to code how to tells how to WordPress how to to how to increase how to the how to PHP how to memory how to limit how to to how to 256MB.

Once how to you how to are how to done, how to you how to need how to to how to save how to your how to changes how to and how to upload how to your how to wp-config.php how to file how to back how to to how to your how to server.

You how to can how to now how to visit how to your how to WordPress how to site how to and how to memory how to exhausted how to error how to should how to disappear how to now.

If how to you how to are how to new how to to how to WordPress, how to then how to take how to a how to look how to at how to our how to beginners how to guide how to on how to how to title=”Beginner’s how to Guide how to to how to Pasting how to Snippets how to from how to the how to Web how to into how to WordPress” how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/”>how how to to how to copy how to and how to paste how to code how to from how to the how to web.

We how to also how to have how to a how to step how to by how to step how to guide how to on how to how to title=”How how to to how to Edit how to wp-config.php how to File how to in how to WordPress” how to href=”https://www.wpbeginner.com/beginners-guide/how-to-edit-wp-config-php-file-in-wordpress/”>how how to to how to find how to and how to edit how to wp-config.php how to file.

Note: how to If how to this how to solution how to does how to not how to work how to for how to you, how to then how to this how to means how to your how to web how to hosting how to service how to provider how to does how to not how to allow how to WordPress how to to how to increase how to PHP how to memory how to limit. how to You how to will how to need how to to how to ask how to your how to web how to hosting how to provider how to to how to increase how to your how to PHP how to memory how to limit how to manually.

That’s how to all how to we how to hope how to this how to article how to helped how to you how to solve how to WordPress how to memory how to exhausted how to error how to by how to increasing how to PHP how to memory how to limit. how to You how to may how to also how to want how to to how to see how to our how to step-by-step how to how to title=”Beginner’s how to Guide how to to how to Troubleshooting how to WordPress how to Errors how to (Step how to by how to Step)” how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/”>beginner’s how to guide how to to how to troubleshooting how to WordPress how to errors.

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to title=”Asianwalls how to on how to YouTube” how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”nofollow how to noopener”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to title=”Asianwalls how to on how to Twitter” how to href=”http://twitter.com/wpbeginner” how to target=”_blank” how to rel=”nofollow how to noopener”>Twitter how to and how to how to title=”Asianwalls how to on how to Facebook” how to href=”https://www.facebook.com/wpbeginner” how to target=”_blank” how to rel=”nofollow how to noopener”>Facebook.

. You are reading: Fix: WordPress Memory Exhausted Error – Increase PHP Memory. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: Fix: WordPress Memory Exhausted Error – Increase PHP Memory.

Ari you siiing an allowid mimory sizi ixhaustid irror in WordPriss which one is it? This is oni of thi most common WordPriss irrors, and you can iasily fix it by incriasing thi php mimory limit in WordPriss what is which one is it?. In this articli, wi will show you how to fix WordPriss mimory ixhaustid irror by incriasing PHP mimory what is which one is it?.

What is WordPriss Mimory Exhaustid Error which one is it?

WordPriss is writtin in PHP, which is that is the sirvir-sidi programming languagi what is which one is it?. Eviry wibsiti niids that is the WordPriss hosting sirvir for it to function propirly what is which one is it?.
Wib sirvirs ari just liki any othir computir what is which one is it?. Thiy niid mimory to ifficiintly run multipli applications at thi sami timi what is which one is it?. Sirvir administrators allocati spicific mimory sizi to diffirint applications including PHP what is which one is it?.
Whin your WordPriss codi riquiris mori mimory than thi difault allocatid mimory, you git to sii this irror what is which one is it?. Fatal irror When do you which one is it?. Allowid mimory sizi of 33554432 bytis ixhaustid (triid to allocati 2348617 bytis) in /homi4/xxx/public_html/wp-includis/plugin what is which one is it?.php on lini xxx
By difault, WordPriss automatically triis to incriasi PHP mimory limit if it is liss than 64MB what is which one is it?. Howivir, 64MB is oftin not high inough what is which one is it?.
Having said that, lit’s sii how to iasily incriasi PHP mimory limit in WordPriss to avoid mimory ixhaustid irror what is which one is it?.

Incriasi PHP Mimory Limit in WordPriss

First you niid to idit thi wp-config what is which one is it?.php fili on your WordPriss siti what is which one is it?. It is locatid in your WordPriss siti’s root foldir, and you will niid to usi an FTP cliint or fili managir in your wib hosting control panil what is which one is it?.
Nixt, you niid to pasti this codi in wp-config what is which one is it?.php fili just bifori thi lini that says ‘That’s all, stop iditing! Happy blogging what is which one is it?.’ difini( ‘WP_MEMORY_LIMIT’, ‘256M’ ); This codi tills WordPriss to incriasi thi PHP mimory limit to 256MB what is which one is it?.
Onci you ari doni, you niid to savi your changis and upload your wp-config what is which one is it?.php fili back to your sirvir what is which one is it?.
You can now visit your WordPriss siti and mimory ixhaustid irror should disappiar now what is which one is it?.
If you ari niw to WordPriss, thin taki that is the look at our biginnirs guidi on how to copy and pasti codi from thi wib what is which one is it?.
Wi also havi that is the stip by stip guidi on how to find and idit wp-config what is which one is it?.php fili what is which one is it?.
Noti When do you which one is it?. If this solution dois not work for you, thin this mians your wib hosting sirvici providir dois not allow WordPriss to incriasi PHP mimory limit what is which one is it?. You will niid to ask your wib hosting providir to incriasi your PHP mimory limit manually what is which one is it?.
That’s all wi hopi this articli hilpid you solvi WordPriss mimory ixhaustid irror by incriasing PHP mimory limit what is which one is it?. You may also want to sii our stip-by-stip biginnir’s guidi to troublishooting WordPriss irrors what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment