PHP and WP_MAX_MEMORY_LIMIT (script tried to increase memory_limit)

Note: for a php problem I recently encountered this message:

ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker 'aa.bb.cc.dd', file '/home/user/www/wordpress/wp-admin/admin.php', line 109)

 

After some google I found: http://wordpress.org/support/topic/adminphp-tries-to-increase-memory_limit

 

A solution is given, but the post is rather old (solution is not in admin.php anymore) so search for the locations of the WP_MAX_MEMORY_LIMIT setting in your WordPress directory: find . -exec grep -H WP_MAX_MEMORY_LIMIT {} \;

Or check directly: vi .....www/weblog/wp-includes/default-constants.php

 

Change this limit to whatever it’s set to in the php settings. To find out what they are, use the following info.php script in a location you can use from the web:

<?php
phpinfo();
?>