Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home/studentlms/public_html/application/third_party/PHPExcel/Cell.php
on line 146 while export data from database
Asked
Active
Viewed 852 times
0

Aishwarya
- 19
- 1
- 6
-
Just add this line in your index.php `ini_set('memory_limit', '-1');` – Punit Gajjar Jan 03 '17 at 09:50
-
ok, i try it. thank you for suggession – Aishwarya Jan 03 '17 at 09:54
-
ok , let us know if still you get some problem... – Punit Gajjar Jan 03 '17 at 10:01
1 Answers
0
You need to increase "memory_limit" configuration in PHP.INI file
Refer: http://php.net/manual/en/ini.core.php#ini.memory-limit
or
You can set it at run time using ini_set() function as
ini_set('memory_limit', '512M');
or
You can set it to infinite value as
ini_set('memory_limit', '-1');

PravinS
- 2,640
- 3
- 21
- 25