Green Hat Expert

  • Home
  • Social Media
    • Instagram
    • TikTok
    • Snapchat
    • Facebook
    • YouTube
    • Twitter
  • Messaging
    • Discord
    • Telegram
    • Whatsapp
  • About
  • Submit Guest post
You are here: Home / Archives for fatal error: allowed memory size of bytes exhausted wordpress

Fix WordPress Memory Exhausted Error – Increase PHP Memory

Last Updated on August 21, 2022 By Arsalan Rauf

Fix: WordPress Memory Exhausted Error – Increase PHP Memory

Are you getting an allowed memory size exhausted error in WordPress?

If yes, then you are at the right place.

It is one of the most common WordPress errors, you can get rid of it with ease. You need to increase php memory limit in WordPress to solve the issue.

In this post, I shall show you how to fix WordPress memory exhausted error by increasing PHP memory.

What is WordPress Memory Exhausted Error?

WordPress is composed in PHP that is a server side programming language. Every site requires a WordPress hosting server for it to make it functional.

Web servers are similar to other computers. They require memory to run multiple apps at the same time in a smooth way. Server administrators allot specific memory size to different apps including PHP.

When your WordPress code needs more memory than the default alloted memory, you will see an error.

1
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 exhuasted error

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

After above discussion, let’s see how to increase PHP memory limit in WordPress to fix memory exhausted error.

Increase PHP Memory Limit in WordPress

First of all, you need to edit your wp-config.php file on your WordPress website. The location of this file is in the root folder of WordPress website and you need to use FTP client or file manager in the control panel of your web hosting.

Next, you need to paste the coding in wp-config.php file before the line that states

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

This code will enable WordPress to increase the memory limit of PHP to 256MB. After completing it, you need to save the changes and upload your wp-config.php file back to your server.

Visit the WordPress site now and memory exhausted error should be resolved or disappear now.

Note: If this solution is not working for you, it means your web hosting provider does not enable WordPress to increase the memory limit of PHP. You need to ask the web hosting provider to increase the limit of your PHP memory manually.

That is it. I hope that you liked this post on how to fix WordPress memory exhausted error – increase PHP memory. And it will enable you to increase the PHP memory limit. You may want to see our guide on how to fix 404 error in WordPress.

Arsalan Rauf
Arsalan Rauf

Arsalan Rauf is an entrepreneur, freelancer, creative writer, and also a fountainhead of Green Hat Expert. Additionally, he is also an eminent researcher of Blogging, SEO, Internet Marketing, Social Media, premium accounts, codes, links, tips and tricks, etc.

www.greenhatexpert.com

Filed Under: Guide, WordPress Tagged With: allowed memory size of 41943040 bytes exhausted, fatal error: allowed memory size of 67108864 bytes exhausted godaddy, fatal error: allowed memory size of 67108864 bytes exhausted opencart, fatal error: allowed memory size of 67108864 bytes exhausted wordpress, fatal error: allowed memory size of bytes exhausted wordpress, fatal error: out of memory wordpress, increase wordpress memory limit godaddy, wordpress memory limit


Recent Posts

  • Free DeepSeek Accounts 2025
  • Free Zoho Mail Accounts 2025
  • Acudepot Discount Codes 2025
  • Free Blackshot Accounts 2025
  • Free GMX Email Accounts 2025
  • Songtrust Discount Codes 2025
  • Uzicases Discount Codes 2025
  • Cardillo Promo Codes 2025
  • Free DriverFix License Keys 2025
  • Avast Secureline VPN Activation Codes 2025

Recommended Posts

Create a Gmail Account Without Phone Number

Free Course Hero Account

Crunchyroll Accounts

Cracked Apps

Free Pokemon Go Accounts
Onlyfans Free Accounts
Free Chegg Accounts
Free Paypal Accounts
Free Gmail Accounts
Funny Steam Names

Categories

  • Apps
  • Apps for PC
  • Blogging
  • Discord
  • Facebook
  • Gaming
  • Grammar
  • Guide
  • How to
  • Instagram
  • Messaging
  • OnlyFans
  • Pinterest
  • Reddit
  • SEO
  • Snapchat
  • Social Media
  • Spotify
  • Steam
  • Telegram
  • TikTok
  • Twitch
  • Twitter
  • Whatsapp
  • WordPress
  • YouTube
  • Home
  • Social Media
  • Messaging
  • About
  • Submit Guest post