Error stumpin'

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
dstefani
Forum Contributor
Posts: 140
Joined: Sat Jan 11, 2003 9:34 am
Location: Meridian Idaho, USA

Error stumpin'

Post by dstefani »

Hi,

I'm getting this error after a database update.

Code: Select all

Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 40 bytes)
Yet it's a very small amount of text that is being written to the table. The update works, it's after the write that I get this error.
There is another part of the script that does the same thing. All the other writes and updates work fine.

I've been googling this trying to find an answer, but I've been stumped so far.

Thanks,

dstefani
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

your server's memory limit for any given process of php is 2MB of memory. You've exceeded that amount of memory. Start using unset() to clean out variables you aren't using anymore.
Post Reply