WordPress max memory limit issue

Written by Peter Molnar
My logcheck agent sent me strange errors in a WordPress site:

ALERT – script tried to increase memory_limit to 268435456 bytes which is above the allowed value.

It claims that wp-admin/admin.php wanted to increase php memory_limit directive. Apparently, the guys at WordPress decided, that one instance of WordPress greatest demand is 256M RAM. It is a bit more than I have ever allowed to a php script.

Workaround: Check your /wp-includes/default-constats.php file for define( ‘WP_MAX_MEMORY_LIMIT’, ‘256M’ ). Edit the value corresponding your server configuration.

I assume, that problem will back on WordPress update.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.