Jump to content

Fatal error: Allowed memory size of 67108864 bytes exhausted


Zephni

Recommended Posts

Rage.

 

The whole error message reads:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16 bytes)

 

Dunno bout you but that doesn't make sense to me!

 

Anywho I am constantly getting this error when any PHP variables are stored or anything. I'm guessing thats the case coz its saying the error is on line 6 which is:

 

$card = rand(1,52);

 

I tried a search on google but just got confused, is there a simple explanation why this is happening? thanks alot guys

Your code either contains a logic error that is causing it to loop forever, thereby taking up all available memory or you are doing something that consumes a huge amount of memory and you either need to optimize/manage the available memory or allocate more memory.

 

In any case, you would need to post your code that duplicates/reproduces the problem for anyone here to be able to specifically help you with what you are doing in your code that is causing this problem.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.