I am getting the below error when exporting large data into excel.
Setting the memory_limit
variable in the script solves the problem, but that is not the proper solution.
Has anybody faced this kind of problem and solved it? Please help me to solve this too.
Error message:
E_ERROR: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes)
Stack trace:
…c/vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/CacheBase.php (173) …c/vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/CacheBase.php (205) …c/vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/CacheBase.php (264) …/goget.com.au/www/src/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php (1045) …goget.com.au/www/src/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/CSV.php (128) ….au/www/src/vendor/fleetcutter/components/src/Helper/ExcelCSVWriterWrapper.php (77)
Thanks Amit