"Fatal error: Allowed memory size exhausted" which solution is best practice?
-
Hi all. When trying to log in to my dashboard, I’m receiving the error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 538648 bytes) in /public_html/wordpress/wp-admin/includes/admin.php on line 52
Some web searching has found 3 solutions, and I’m wondering if any one is most advantageous, or considered best practice. The three solutions are:
1. If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 32M try 64M:
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)2. Adding this line to your wp-config.php file:
define(‘WP_MEMORY_LIMIT’, ’64M’);3. Adding this to your .htaccess file:
php_value memory_limit 64MThe second 2 are desirable, as I can perform them without assistance from my server admin. The first requires assistance from the server admin. But I’ll pursue that route if it is more advantageous for any reason.
Let me know if I’ve misunderstood or omitted anything.
Thanks in advance.
- The topic ‘"Fatal error: Allowed memory size exhausted" which solution is best practice?’ is closed to new replies.