• how can i resolve my this type of error logs

    [03-Apr-2016 08:06:58 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 49152 bytes) in /home/jeemainppkkrtt/public_html/wp-includes/wp-db.php on line 2857
    [03-Apr-2016 08:06:58 UTC] PHP Fatal error: Out of memory (allocated 10747904) (tried to allocate 49152 bytes) in /home/jeemainppkkrtt/public_html/wp-includes/taxonomy.php on line 2390

Viewing 9 replies - 1 through 9 (of 9 total)
  • This means that the server did not have enough memory to process the size of the data that it’s required to perform. In your case the allowed memory size is around 200 MB and you need to increase the memory size to 500 MB or more, Go to your wp-config.php file and add this line “define( ‘WP_MEMORY_LIMIT’, ‘600M’ );” , this means you have increased your allowed memory size.

    Where in the wp-config.php would you add that line?

    I have same issue, but in my php.ini I have memory_limit = 2048M, in wp-config.php I have define(‘WP_MEMORY_LIMIT’, ‘512M’); but I still get the same error, Out of memory (allocated 2097152) (tried to allocate 49152 bytes).

    And one more thing, I do not understand the wording of this error, 2097152 is more that 49152, why does is says out of memory when trying to allocate less than already allocateed?

    I’m having this problem with my creative minds glossary.

    Creative Minds looked into it extensively and said,

    “We investigated this locally and our conclusion this is server/hosting related.

    My suggestion is to try to move this even temporarily to a new host (without changing domain) and see the results. ou this is not from our plugins and we made all checks on our side and this plugin is being used by more than 10000+ already (pro version)”

    My hosting company is ehost. I’m up to 512mb already. Did anyone find a fix that works? Are all of us having the same problems with the same plugin or host? I so need this plugin to work.

    The advice doesnt work because there is now a limit hardcoded into WP With the default constants file in the wp-included folder. But even though I have even changed that I still get this error. WordPress is really badly made in this sense. So unstable. It is only very good for small blogs with 1 or to posts per week and basic plugins.

    Hey @gary-carlyle, I looked into wp-includes\default-constants.php file, but could not find there any lines with 2097152 or 2048K or 2M, any ideas where from WordPress gets this strange limit?

    • This reply was modified 8 years, 1 month ago by Cigaras.

    I’m having this problem with my creative minds glossary.

    Fatal error: Out of memory (allocated 2097152) (tried to allocate 49152 bytes)

    Gabriel Perez
    sitio mundonuevo.cl

    Hi,
    if anyone solved the problem?
    My website: https://www.stolicazdrowia.pl

    I changed the version of PHP 7.0.14 on 5.6.39 and the problem solved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal error: Out of memory (allocated 2097152) (tried to allocate 49152 bytes)’ is closed to new replies.