Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mohammadkhallaf's avatar

WARN PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65536 bytes) in C:\xampp\htdocs\optical\vendor\monolog\monolog\src\Monolog\Handler\AbstractProcessingHandler.php on line 27.

WARN PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65536 bytes) in C:\xampp\htdocs\optical\vendor\monolog\monolog\src\Monolog\Handler\AbstractProcessingHandler.php on line 27.

0 likes
2 replies
Snapey's avatar

often these problems are not resolved by giving php more memory

You need to track down what part of your code is triggering the issue. Since this is an issue in monolog you probably are dumping something to the log which contains recursive references

Please or to participate in this conversation.