0

I want to extend the allowed memory size. Currently my excel downloads are not downloading it throws following error:

 Fatal error: Allowed memory size of 268435456 bytes exhausted (tried
 to allocate 32 bytes) in application/libraries/Excel/PHPExcel/Cell.php
 on line 839
Patrick
  • 12,336
  • 15
  • 73
  • 115
Kumanan
  • 420
  • 1
  • 4
  • 11
  • Either increase the memory that your php.ini sets as the limit; or try using cell caching - http://stackoverflow.com/questions/4817651/phpexcel-runs-out-of-256-512-and-also-1024mb-of-ram/4817729 – Mark Baker Jan 04 '17 at 08:01

1 Answers1

0

Increase memory limit in your php:

ini_set('memory_limit', '1024M');

After this the memory limit will be 1 GB.

T K
  • 1
  • 2
  • This issue is not related to extending PHP memory size. Issue is related to Extending PHPExcel memory. FYI, my php.ini file has 2GB memory limit. – Kumanan Jan 09 '17 at 12:41