For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > April 2004 > quickForm : allowed memory exhausted









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author quickForm : allowed memory exhausted
Cindy Blondeel

2004-04-25, 9:30 am

Good afternoon,

does any of you ever get the following message while trying to create a
select element (mine has 1600 elements) :

Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0
(tried to allocate 24 bytes) in pear/HTML/QuickForm/select.php on line 336

Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0
(tried to allocate 23 bytes) in Unknown on line 0

Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0
(tried to allocate 44 bytes) in Unknown on line 0

I cannot get rid of it at all !

Thanks in advance.
Tommy Ipsen

2004-04-25, 10:34 am

Cindy Blondeel wrote:

> Good afternoon,
>
> does any of you ever get the following message while trying to create a
> select element (mine has 1600 elements) :


Have you considered reducing the number of elements - it's hardly user
friendly to confront the user with this kind of choice...

Perhaps you should consider the custom "hier-select" element instead -
it might help you avoid the memory issue as well as increasing the
usability of your page!

Cheers, Tommy Ipsen

PS: It seems like you're effectively exhausting all the memory allocated
to your entire php script - if you can reduce the memory consumption
elsewhere in your script you might be successful in creating your
desired (lunatic) number of options.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com