Page 1 of 1
Memory Error - Please Help!?!?!
Posted: Wed Mar 05, 2008 4:44 pm
by ForceBucks
Hey guys,
I run a site and I dont really know all that much about php but I am in a huge jam. The script I am using was actually purchased from a 3rd party but the guy tells me he doesnt know jack about my error. I am getting this error when I try and get into the admin portion of my site:
Fatal error: out of dynamic memory in yy_create_buffer() in /usr/local/lib/php/PEAR.php on line 570
My hosting company is HostGator and they are stumped. Everyone is stumped. Does anyone have any advice for me? Thanks!
Ryan
Re: Memory Error - Please Help!?!?!
Posted: Wed Mar 05, 2008 7:49 pm
by Chris Corbyn
Out of dynamic memory?! Hmm... That's a new one. Does this script use any PHP extensions?
Re: Memory Error - Please Help!?!?!
Posted: Wed Mar 05, 2008 7:58 pm
by Sekka
It's really does astonish me how many people don't use Google.
http://www.google.co.uk/search?hl=en&q= ... arch&meta=
This may be helpful? I dunno.
http://bugs.php.net/bug.php?id=40259
Re: Memory Error - Please Help!?!?!
Posted: Wed Mar 05, 2008 9:57 pm
by Chalks
Yeah. I just read through the first 20 results or so, and none of them had a definitive answer. Then I did a few more specific searches, and still didn't come up with an answer. So... Google isn't _always_ a substitute for asking here/real people.
The general consensus, however, seems to be that too much is being done all at once overwhelming the server. Make sure your mysql queries aren't doing more than the minimum required to get the job done. If you can legally post the source of the app you purchased, do so. If you can not, try to find an example of a place where the 3rd party script is working properly, and show us what it is _supposed_ to do.
Also: Huzzah for HostGator! I've been using them for almost 2 years now, and no problems whatsoever.

Re: Memory Error - Please Help!?!?!
Posted: Wed Mar 05, 2008 10:16 pm
by Ambush Commander
Looks like the memory exhaustion is coming from Flex generated code that is attempting to load multiple input files (i.e. your includes). It shouldn't have anything to do with database connections.
Is the line in which the memory exhaustion occurring consistent? And if so, what is the value of var_dump(get_included_files()) before the error?