CodeIgniter Forums
Loader.php : cannot allocate memory - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Loader.php : cannot allocate memory (/showthread.php?tid=22589)



Loader.php : cannot allocate memory - El Forum - 09-14-2009

[eluser]tokyotech[/eluser]
On about 10% of page refreshes, I get this error:

Code:
A PHP Error was encountered

Severity: Warning

Message: CI_Loader::include_once(/......../system/application/config/autoload.php) [function.CI-Loader-include-once]: failed to open stream: Cannot allocate memory

Filename: libraries/Loader.php

Line Number: 949

Is my WAMP screwed up or is this a known CI bug?


Loader.php : cannot allocate memory - El Forum - 09-14-2009

[eluser]Aken[/eluser]
Definitely not a known CI bug. I'd guess it has something to do with your install. All those dots before the system folder is likely part of the problem. Try and figure out what that's coming from.


Loader.php : cannot allocate memory - El Forum - 09-15-2009

[eluser]tokyotech[/eluser]
Those dots are not part of my real code.


Loader.php : cannot allocate memory - El Forum - 09-15-2009

[eluser]NateL[/eluser]
cannot allocate memory sounds like a server issue. What kind of host are you on?


Loader.php : cannot allocate memory - El Forum - 09-15-2009

[eluser]jedd[/eluser]
What's your memory_limit in your php.ini set to?

And/or

Bump up your memory_limit in your php.ini file.