Close Menu
    • Facebook
    • Twitter
    • Pinterest
    • WhatsApp
    Categories
    • Animals (118)
    • App Development (227)
    • Arts and Entertainment (216)
    • Automotive (362)
    • Beauty (91)
    • Biography (16)
    • Book Reviews (53)
    • Business (3,596)
    • Cancer (37)
    • Casino (15)
    • CBD (39)
    • celebrity (6)
    • Communications (96)
    • Computers and Technology (988)
    • Construction (101)
    • Digital Marketing (680)
    • Education (576)
    • Events (25)
    • Farmest (12)
    • Fashion (506)
    • Featured (173)
    • Finance (421)
    • Food and Drink (265)
    • Gadgets (149)
    • Gaming (268)
    • Graphic Designing (61)
    • Guide (344)
    • Health and Fitness (2,032)
    • Home and Family (320)
    • Home Based Business (126)
    • Home Improvement (931)
    • Insurance (64)
    • Internet and Businesses Online (329)
    • Investing (67)
    • Kids and Teens (108)
    • Legal (298)
    • Lifestyle (12)
    • Lifestyle (642)
    • Medical (314)
    • Movies (20)
    • News (228)
    • Photography (52)
    • Products (455)
    • Real Estate (334)
    • Recreation and Sports (43)
    • Reference and Education (129)
    • Relationships (85)
    • Reviews (6)
    • Self Improvement (73)
    • SEO (346)
    • Services (1,119)
    • social media (1)
    • Software (440)
    • Sports (63)
    • Study (53)
    • Travel and Leisure (571)
    • TV (42)
    • Uncategorized (639)
    • Video (34)
    • Women's Interests (138)
    • Writing and Speaking (90)
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    The Post City
    • Home
    • Business
    • Health and Fitness
    • News
    • Finance
    • Contact Us
    The Post City
    Home»Computers and Technology»How to Increase WordPress Memory Limit
    Computers and Technology

    How to Increase WordPress Memory Limit

    The Post CityBy The Post CityJuly 6, 2020No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr WhatsApp Email
    Share
    Facebook Twitter LinkedIn WhatsApp Pinterest Email

    In this guide, we would help you solve the WordPress Memory Limit error by increasing the memory size from within your WordPress. Read along to learn more.

    What is WordPress Memory Limit Error?

    How to increase WordPress memory limit is a pretty stable platform to build websites but may give you some errors on occasions. By default, WordPress provides very little memory size (usually 32 or 64 MB) to its users. Depending on your hosting provider and server, this value may differ.

    Since most sites nowadays require way more size than the default value, you may get a memory error like this.

    Fatal error: Allowed memory size of xx bytes exhausted

    How to increase the PHP Memory Limit of your WordPress?

    There are two possible ways to increase the WordPress Memory limit of your website.

    1. Define the new memory size all by yourself
    2. Let your hosting provider change it from the server

    Let’s see how to increase the memory in both the ways. We would take a small example to show you how to do it.

    Changing the memory limit yourself

    The very first step is to go into your wp-config.php file found in your WordPress’s root folder. You would need a file manager or an FTP Client to find this folder.

    Once you’re in, you need to copy and paste the following code into your wp-config.php file.

    define( ‘WP_MEMORY_LIMIT’, ‘512M’ );

    This particular code line is to tell WordPress to increase the PHP memory limit to 512MB.

    Please Note: You must paste this code just before the line ‘That’s all, stop editing! Happy blogging.’ You can refer to the following sample image.

    After that, you must save the changes and upload the file back to your server to see if the error message is gone or not.

    If that doesn’t remove the error message, you may have to go to the PHP.ini file. If you have access to your PHP.ini file, you can go there and look for ‘memory_limit’ as shown below.

    Now, you need to replace the pre-defined size with the new one. So, for instance, if your line shows 256M, then try entering 512M:

    memory_limit = 512M; Maximum amount of memory a script may consume (64MB)

    However, if you don’t have access to your PHP.ini file, then you would have to do a workaround. You can try adding the following code to your .htaccess file.

    php_value memory_limit 512M

    Have a look at the image below for your reference:

    Contacting your hosting provider

    WordPress memory size can vary from server to server. Depending on your current hosting plan, you may be limited to a specific memory size(256MB, 512MB, 1GB, or more).

    That’s because each hosting plan would provide different sets of resources to customers. Should you feel the need to increase the size of your PHP Memory, then feel free to contact your hosting plan and change the plan?

    Conclusion

    We understand that it can be troublesome to encounter such an error while working on your website. Luckily, you’re safe as there are a ton of options and help available to keep you going.

    In the case of WordPress Memory Limit issue, you have two safe ways to solve the issue permanently. We discussed,

    1. How to increase the limit manually using any client software.
    2. If nothing works, contact your hosting provider to increase it at the server level.

     

    Share. Facebook Twitter Pinterest LinkedIn Tumblr WhatsApp Email
    Previous Articlehow to connect mobile to tv without cable | LED TV को मोबाइल से कनेक्ट करें
    Next Article Web Hosting Services Booming Demand in Global 2020
    The Post City

    Add A Comment

    Comments are closed.

    Categories
    • Animals (118)
    • App Development (227)
    • Arts and Entertainment (216)
    • Automotive (362)
    • Beauty (91)
    • Biography (16)
    • Book Reviews (53)
    • Business (3,596)
    • Cancer (37)
    • Casino (15)
    • CBD (39)
    • celebrity (6)
    • Communications (96)
    • Computers and Technology (988)
    • Construction (101)
    • Digital Marketing (680)
    • Education (576)
    • Events (25)
    • Farmest (12)
    • Fashion (506)
    • Featured (173)
    • Finance (421)
    • Food and Drink (265)
    • Gadgets (149)
    • Gaming (268)
    • Graphic Designing (61)
    • Guide (344)
    • Health and Fitness (2,032)
    • Home and Family (320)
    • Home Based Business (126)
    • Home Improvement (931)
    • Insurance (64)
    • Internet and Businesses Online (329)
    • Investing (67)
    • Kids and Teens (108)
    • Legal (298)
    • Lifestyle (12)
    • Lifestyle (642)
    • Medical (314)
    • Movies (20)
    • News (228)
    • Photography (52)
    • Products (455)
    • Real Estate (334)
    • Recreation and Sports (43)
    • Reference and Education (129)
    • Relationships (85)
    • Reviews (6)
    • Self Improvement (73)
    • SEO (346)
    • Services (1,119)
    • social media (1)
    • Software (440)
    • Sports (63)
    • Study (53)
    • Travel and Leisure (571)
    • TV (42)
    • Uncategorized (639)
    • Video (34)
    • Women's Interests (138)
    • Writing and Speaking (90)
    Facebook X (Twitter) Pinterest WhatsApp
    • Home
    • Lifestyle
    • Buy Now
    © 2025 The Posts City

    Type above and press Enter to search. Press Esc to cancel.