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

Created at 17-Mar-2021 , By samar

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

Good day, guys. In this post, we’ll look at how to solve the "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home/xxx/public_html/wp-includes/plugin.php on line xxx" programming puzzle.

  • --PATH wp-config.php
    define( 'WP_MEMORY_LIMIT', '256M' );
    
    Using this code snippet you can increase the memory limit in wordPress. This code snippet tells wordpress to increase the PHP memory limit to 256MB. Change the value of WP_MEMORY_LIMIT to 256M ('WP_MEMORY_LIMIT', '256M') if the value already exists or copy paste code just after define( 'WP_DEBUG', true ); code. You can also increase value as per your requirement.
  • ini_set('memory_limit', '-1');
    
    If you have access to the php.ini file then you can increase memory limit using php.ini file otherwise you can add this code to your php script. It takes unlimited memory usage from the server.

Back to code snippet queries related wordpress

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.