PHP 7 Memory Limit problems
-
My VPS has 2048MB allocated.
I have 1024MB allocated in user.ini, and wp-config.php
If I change user.ini to -1 for unlimited memory the problem still occurs, and also if I allocate 2048MB in wp-config.php with
define( ‘WP_MAX_MEMORY_LIMIT’, ’1024M’ );
define( ‘WP_MEMORY_LIMIT’, ‘1024M’ );I get odd error messages in the dashboard. similar to: Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 36864 bytes) in /wp-includes/wp-db.php on line 2352
If I remove WP_MAX_MEMORY_LIMIT from wp-config.php the problem gets a lot better.
I have replicated this on an unconnected test rig, and this seems to only happen on PHP 7, so I’m suspecting it’s either a bug in PHP 7, or a problem in wordpress itself (I’m not skilled enough to be able to tell)
Can anyone else replicate, or offer a solution
Thanks,
Chris
- The topic ‘PHP 7 Memory Limit problems’ is closed to new replies.