This error could be found in laravel log
1 2 3 |
[2020-10-07 08:56:19] production.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Allowed memory size of 100663296 bytes exhausted (tried to allocate 20480 bytes) in /var/www/starpoint.gamepp.tw/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Cells.php:157 Stack trace: #0 {main} |
Solution: Change memory limit in PHP
1 2 |
set_time_limit(1800); ini_set('memory_limit', '300M'); |
Reference: