You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33554440 bytes) in [projectfolder]/vendor/nunomaduro/phpinsights/src/Domain/Collector.php on line 349
The text was updated successfully, but these errors were encountered:
I have encountered the memory limit using PHP command line interface ( CLI ) and has a hard time finding how to increase the memory limit. After trying to modify the loaded php.ini file or specifying the memory as a CLI parameter php -d memory_limit=2G ./vendor/bin/phpinsights, I realized the memory limit stayed the same 134217728 bytes (128M).
I found out I had a previous phpcs.xml file for PHP Code Sniffer in which the following flag was specified : <ini name="memory_limit" value="128M"/>
After removing the ini flag, everything is good ! I hope it can help others.
It may be worth of mention in the docs @nunomaduro ?
This error pops up:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33554440 bytes) in [projectfolder]/vendor/nunomaduro/phpinsights/src/Domain/Collector.php on line 349
The text was updated successfully, but these errors were encountered: