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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.