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
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.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
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.
Random Code Snippet Queries: Wordpress
- Remove class from body tag in wordpress
- How to hide PHP Warnings and Notices in WordPress?
- Function to get the post id in while (have_posts()) : the_post();
- Remove every class and ID from the wp_nav_menu
- Create a accordion plugin in wordpress
- How to use shop in product category and product permalink in woocommerce
- How to display author avatar in Wordpress 5
- Replace Live Site Url with Local Site URL in wordpress database
- Custom post type in wordpress
- Show template file name in wordpress
- Add new class to body tag in wordpress
- Create shortcode in wordpress functions php