500 error due to PHP memory_limit… but limit is higher
-
Odd one for ya. Running code profiler on a site homepage. It comes back with a 500 error. Server logs show:
AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 10000312 bytes) in path_to_wordpress/wp-content/plugins/code-profiler/lib/class-profiler.php on line 177'
Normally we’d just increase the memory_limit value in the PHP config for the domain in Plesk. The problem is the memory limit is already 1G even though the error is indicating it’s 256MB. Even the server-wide php.ini for this version of PHP is 512MB and not 256MB.
The Support tab in Code Profiler even confirms this, as does phpinfo().
[sysinfo] => Array ( [OS] => SNIPPED [HTTP server] => Apache [PHP] => FPM-FCGI 8.1.27 [Opcode cache] => Zend OPcache (enabled) [Memory limit] => 1G
Have you ever encountered a case like this where the server log was showing the memory limit not matching the actual value?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘500 error due to PHP memory_limit… but limit is higher’ is closed to new replies.