Error when trying to log in to the admin area my WP site

6 replies
I can't access my admin area because I am receiving this error message:

Fatal error
: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in /home/......../public_html/wp-admin/menu.php on line 235

When I look at that line in the menu.php file this is what it says:

$_wp_real_parent_file['wpmu-admin.php'] = 'ms-admin.php';

Can anyone suggest how I correct this as I have no idea
#admin #area #error #log #site
  • Profile picture of the author SmartWeb
    Your hosting account allocates you memory for your PHP processing. seems like some of your plugin/php-code is consuming all the memory.

    You can increase the memory by editing php.ini (might be present in your root folder, else you may need to create one there)

    find this word,
    memory_limit

    it might be something like,
    memory_limit = 32M (or any other number )
    just modify this line and it should be fine. But still you need to find and disable the script which is using high memory, because that might be the root cause.
    {{ DiscussionBoard.errors[2684643].message }}
  • Here are three things you can try:

    1. Edit your php.ini file with the following code (create a php.ini file and upload it to your web hosting account's root directory if it doesn't exist -- although, you may not have permission from your hosting provider):

    Code:
    memory_limit = 64M
    2. Add the following code to your wp-config.php file (located in the root directory of Wordpress):

    Code:
    define('WP_MEMORY_LIMIT', '64M');
    3. Add this to your /wp-includes/cache.php file (after the <?php tag):

    Code:
    ini_set('memory_limit','64M');
    Hope this helps!
    {{ DiscussionBoard.errors[2697668].message }}
    • Profile picture of the author jminkler
      Originally Posted by Chris Landrum View Post

      Here are three things you can try:

      1. Edit your php.ini file with the following code (create a php.ini file and upload it to your web hosting account's root directory if it doesn't exist -- although, you may not have permission from your hosting provider):

      Code:
      memory_limit = 64M
      2. Add the following code to your wp-config.php file (located in the root directory of Wordpress):

      Code:
      define('WP_MEMORY_LIMIT', '64M');
      3. Add this to your /wp-includes/cache.php file (after the <?php tag):

      Code:
      ini_set('memory_limit','64M');
      Hope this helps!

      If the server is forcing some sort of cap, this all will get ignored, its time to figure out what's eating up all the memory before things get ugly.
      {{ DiscussionBoard.errors[2714441].message }}
      • Originally Posted by jminkler View Post

        If the server is forcing some sort of cap, this all will get ignored, its time to figure out what's eating up all the memory before things get ugly.
        While I agree she should determine what is exhausting 491520 bytes on the account, but if her hosting provider allows her to modify a localized PHP.ini file with the above values, then why would a 64MB memory limit get "ignored" by the server (again, when the request is only 491520 bytes)?
        {{ DiscussionBoard.errors[2715791].message }}

Trending Topics