Home How to How to Increasing the PHP Memory Limit for wordpress

How to Increasing the PHP Memory Limit for wordpress

by Wikky
1001 views

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

if you are getting Fatal error: Allowed memory size while uploading or executing any script in wordpress then you need to increase the PHP memory limit for your wordpress application.

You can update memory limit by three ways:

Here are these methods to try. to apply these it is required intermediate knowledge at code level; as these are not front end changes.

1. By Edit your wp-config.php file

Add following line before “Happy Blogging”:

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

2. Edit your .htaccess file

If you can’t access to PHP.ini file then you can try updating “.htaccess” file by adding following line:

php_value memory_limit 256M

3. By Edit PHP.ini file

If you can access PHP.ini file, then open that file and search for “memory_limit”.
If its value is set to 64M then update it to 256M:

memory_limit = 256M;

Hope this Helps!


You may like:

    You may also like

    1 comment

    Write Quest for the Best Blog Posts - Beginners Guide - CruxInsiders by Wikky May 5, 2020 - 10:46 am

    […] can face in your blog websites like White Screen of death (WSOD), increase maximum execution time, Increase memory limit and many […]

    Reply

    Leave a Comment

    This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More