• 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 64M

    The 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    codex guide: increasing memory available for php

    these all should work.

    Thread Starter cag8f

    (@cag8f)

    Thanks for the reply. I’ve now tried those 2, along with the .htaccess solution, but none have worked. I think that is indicative of my memory being limited at the server (php.ini) level?

    Moderator t-p

    (@t-p)

    most hosts do limit space. You may want to discuss with your hosting provider.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"Fatal error: Allowed memory size exhausted" which solution is best practice?’ is closed to new replies.