• I’m so confused as to why this started showing up. It only shows up when I log into my wp-admin. It isn’t anywhere on my website.

    Dashboard:
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 77824 bytes) in /home/insanity/public_html/wp-includes/class-snoopy.php on line 249

    Page Management:
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4955 bytes) in /home/insanity/public_html/wp-includes/plugin.php on line 54

    Write Post:
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5208 bytes) in /home/insanity/public_html/wp-includes/plugin.php on line 158

    Plugin Management:
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 8192 bytes) in /home/insanity/public_html/wp-admin/admin-functions.php on line 1734

    It shows up everywhere. I’m just trying to show you that it changes on each page.

    I’m really not sure what’s wrong. Can someone please help me out?

Viewing 6 replies - 1 through 6 (of 6 total)
  • In all the failing php files : class-snoopy.php,plugin.php and admin-functions.php, add the following code at the top in line 2 just after “<?php” :

    ini_set("memory_limit","12M");

    If even then it fails, try increasing the 12M to 20M.
    After the upgrade runs successfully, you may remove that line or keep as it as you wish.

    Also see :
    https://www.ads-software.com/support/topic/137412?replies=3

    Hi riteshTilve,
    I put the line of code but i follow with the error.

    In my phpinfo I see this

    memory_limit 8M 8M

    It is rare that until a week ago this worked ok

    May be a change in the configuration server?

    I hope you can help me

    Thx

    Did you try:

    memory_limit 16M

    or

    memory_limit 206M

    Yesterday, when i upgraded WordPress from 2.3 to 2.3.1,

    • again i had this same memory exhausted error. Then i searched a lot and tried lots of things, which i am listing for your benefit. I don’t know exactly which of them worked, but after i made the last change from the following list,things are fine now :
    1. I tried going back to the older 2.3 wordpress version. But still the error did not go.. So came back to 2.3.1.
    2. Added ini_set("memory_limit","20M"); to the plugin php file from which the error was coming.
      But still the error did not go.
    3. Commented the following line in cache.php.
      $data = unserialize(serialize($data));
      The above line was commented at all the 3 places in cache.php.
      But still the error did not go.
    4. In php.ini, increased the memory limit from 8M to 20M :
      memory_limit = 20M ; Maximum amount of memory a script may consume (8MB)
      But still the error did not go.
    5. In .htaccess, added the following line and restarted the server.
      php_value memory_limit 32M
      But still the error did not go.
    6. Deactivated all plugins by moving them from the plugins folder and also by running the following query in phpMyadmin :
      update wp_options set option_value  = '' where option_name = 'active_plugins'

      The error was gone, but i can’t work well without the plugins. So, only deactivated the plugin with the error and reactivated the rest. The error was gone.

    7. But since i wanted that plugin also, i experimented further and added the line ini_set("memory_limit","12M"); to the main root file of the plugin.The plugin had lots of files in subfolders and the error file was inside the folder.
      Adding the line in the root php file which was the starting point of the plugin solved the problem.

    Now, everything is working fine.
    Just see if one of the above solutions work for you.
    Also, check whether you have latest versions of all plugins & themes or try moving some themes or plugins temporarily to check whether that is the cause of problem

    wpitn2shape

    (@wpitn2shape)

    Putting it in /wp-includes/cache.php is what worked for me (NOT snoopy).

    I have had the same:
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4564 bytes) in /home/sites/zoebc.com/public_html/blog/wp-admin/admin-functions.php on line 2242

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /home/sites/zoebc.com/public_html/blog/wp-includes/plugin.php on line 139

    And I have read the recorded helpful tips but as an older beginner I do not understand.

    Please can someone put the solution in simple terms so that i can get our website working again.

    Pastor Ray

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Allowed memory size of ## bytes exhausted’ is closed to new replies.