Skip to content
Advertisement

Fatal Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) on line 3

I am getting this error in codeigniter 3. I had tried most of the things but none of them worked.

JavaScript

Advertisement

Answer

  1. Increase memory_limit in your php.ini file. If this is not resolving the issues:

2) Add this line ini_set('memory_limit', '-1'); before the line where you get the error

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement