Lets Make It EasyLets Make It Easy
    Lets Make It EasyLets Make It Easy
    • Home
    • Related To PC
      • Computer Tips & Tricks
      • General Tips
      • Game Tricks And Fixes
      • Windows Tricks
    • Build a PC

      Best Gaming PC Build Under ₹60000 in India With Ultra Performance (60 FPS)(2K,1080 FHD)

      December 9, 2022

      Best Gaming PC Build Under ₹70000 in India with an Ultimate Performance (60 FPS)(4K,2K,1080p FHD)

      December 9, 2022

      Best Graphics Card for Gaming Under ₹30000 in India With a Tremendous Performance (60 FPS)(2K,1080p FHD)

      December 9, 2022

      Best Graphics Card for Gaming Under ₹20000 in India With a Excellent Performance (60 FPS)(1080p FHD)

      December 9, 2022

      Best Gaming PC Build Under ₹80000 in India with an Amazing Performance (60 FPS)(4K,2K,1080p FHD)

      December 9, 2022
    • Blogger Tips

      How To Create a Perfect Custom Robots.txt File in Blogger?

      January 11, 2023

      How to Disavow Backlinks in Google Search Console?

      December 9, 2022

      How to Find and Remove the Bad/Toxic/Spammy Backlinks that affects your SEO Badly from Google?

      December 9, 2022

      How to Verify Google Search Console for WordPress Using DNS Verification? | Google Search Console DNS Verification ( Domain )

      December 9, 2022

      Google Search Console : 4 Simple Methods To Verify your Site Ownership For WordPress and Blogger

      December 9, 2022
    • WordPress Tips

      How to Hide/Remove Theme Name in WordPress?

      March 7, 2023

      How to Repair a Corrupted MySQL Database Table?

      March 2, 2023

      How to Get Quick Adsense Approval for WordPress Blog/Website?

      February 27, 2023

      How to Update/Clear Google Amp Cache?

      January 28, 2023

      How to Get a Free Domain and Hosting for Educational/Testing Purposes?

      January 25, 2023
    • Youtube Tips And Tricks
    • More Topics
      • Andriod Tricks
      • Mobile Tricks
      • Publisher’s Spot
      • Internet Tricks
    Lets Make It EasyLets Make It Easy
    Home » How to Fix “Fatal Error Allowed Memory Size of bytes Exhausted (tried to allocate bytes)”in WordPress?
    Wordpress Tips

    How to Fix “Fatal Error Allowed Memory Size of bytes Exhausted (tried to allocate bytes)”in WordPress?

    Vasantharaj R NBy Vasantharaj R NDecember 9, 2022Updated:December 9, 2022No Comments4 Mins Read
    How to Fix "Fatal Error Allowed Memory Size of bytes Exhausted (tried to allocate bytes)"in Wordpress?

    Hi Guys, Today I am Going to Show You How to Fix “Fatal Error Allowed Memory Size of bytes Exhausted (tried to allocate bytes)”in WordPress?

    Are you Looking for the Commonly Searched WordPress Error “How to Fix “Fatal Error Allowed Memory Size of bytes Exhausted (tried to allocate bytes)”in WordPress?” (or) “How to Increase Php Memory Limit in WordPress?”.Here is the Solution to Fix this Common Issue That has been faced by most of the WordPress Users including myself.

    Let’s See about How to fix this issue?

    Trending
    How to Fix Command Prompt Opens And Closes Immediately in Windows 10? | Why CMD.exe Closes Immediately Whenever I Tried to Open it?

    Check Out This: How to Transfer a Domain Easily from One Registrar to Another (In 3 Steps)? | Step-By-Step Domain Transfer Tutorial

    Steps For How to Fix “Fatal Error Allowed Memory Size of bytes Exhausted (tried to allocate bytes)”in WordPress? 

     

    Method 1: Increase the Memory Limit Manually

    1. If you have access to your PHP.ini file, Try to change the Memory Limit Value in PHP.ini File.

    If the Memory Limit is set to 32M by Default then Change it to 64M,128M,256M)

    memory_limit = 32M —> memory_limit = 64M

     

    2.If you don’t have access to PHP.ini File, Add the Below Line to a .htaccess file:

    php_value upload_max_filesize 128M
    php_value post_max_size 128M
    php_value max_execution_time 300
    php_value max_input_time 300
    php_value memory_limit 256M

    php_value upload_max_filesize 128M
    php_value post_max_size 128M
    php_value max_execution_time 300
    php_value max_input_time 300
    php_value memory_limit 256M

     

    If the Memory Limit is set to 32M by Default then Change it to 64M,128M,256M)

     

    Method 2: Change the Memory Limit Value to Different Value

    Just Look for the Below Given Lines and Try to Change the Memory Limit Values 

    ini_set(‘memory_limit’, ‘512M’);

    (or)

    php.ini => memory_limit = 128M

    (or)

    php_value memory_limit 128M

    ini_set('memory_limit', '512M');
    
    
    (or)
    
    php.ini => memory_limit = 128M
    
    
    (or)
    
    php_value memory_limit 128M

     

     Save the File and Refresh the Website.

     

    Method 3: Change the Memory Limit Value to Unlimited (Full memory)

    Step 1: First of all Go to Your Web Hosting Site and Log into Your CPanel (HPanel).

    Step 2: Navigate to PHP Section and Change Memory Limit to -1.

    (Or)

    Step 2: Try to change the Memory Limit Value in PHP.ini File.

    ini_set(‘memory_limit’, ‘-1’);

    ini_set('memory_limit', '-1');

    *Note – ( -1 = Unlimited Memory)

    Step 3: Save the File and Refresh the Website.

     

    Method 4: Adding a code in the wp-config.php file

    Step 1: First of all Go to Your Web Hosting Site and Log into Your CPanel.

    Step 2: Navigate to File Manager and Open Public_Html Folder.

    Step 3: Now Right Click on the Wp-Config.php File and Click Edit Option to Edit the Wp-Config.php File.

    Step 4: Add this Piece of Lines into the Wp-Config.php

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

    define( 'WP_MAX_MEMORY_LIMIT', '512M' );
    define( 'WP_MEMORY_LIMIT', '512M' );

    Step 5: Save the File and Refresh the Website.

     

    Method 5: Upgrade Your PHP Version

    Just go to your Hosting CPanel and Upgrade your PHP version to 7.1 and above.

     

    Method 6: Contact Your Host

    Contact your Hosting Company’s Help Service and Ask them to Increase the Memory Limit.

     

    Method 7: Upgrade Your Site Hosting Plan

    If you are on a Shared Web Hosting Servers, Just Upgrade Your Website Hosting to Some Good Hosting plans/Servers like VPS or Dedicated Hosting Servers.

    Note – If you have More than 2 -3 Lakh Views Per Month, You must Definitely Update to VPS Hosting Services.

    For a Large Number of Viewers, You Just Need a Dedicated Hosting Server.

    That’s It! You’re Done Man! 

    That’s All About this Post. Give Your Reviews / Reactions about this Post and Leave Comments, Ask Your Doubts, We are here to Help You!

    Vasantharaj R N

    Basically an Instrumentation Engineer But Very much Interested in Blogging. I'm a Passionate Blogger and an Expert in Search Engine Optimization And Always Looking Forward to Learn New Things. I Would Fix & Provide Solution to the Most Common Issues Related to PC,Laptops,Mobiles,OS, Hardwares and Softwares.

    Related Posts

    How to Hide/Remove Theme Name in WordPress?

    March 7, 2023

    How to Repair a Corrupted MySQL Database Table?

    March 2, 2023

    How to Get Quick Adsense Approval for WordPress Blog/Website?

    February 27, 2023

    How to Update/Clear Google Amp Cache?

    January 28, 2023
    Add A Comment

    Leave A Reply Cancel Reply

    Lets Make It Easy
    Copyright © 2021 Letsmakeiteasy LLC. All Rights Reserved. Letsmakeiteasy® is a registered trademark.WordPress hosting by Hostinger | Crafted With Love | Designed By Vasanth

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