Unfortunatly i can't modify php.in, my website is on a server that is not mine.
What else can i do?
the problem is that the first search box work fine, but i have the error when i try to use multiple search parameters like state+age+gender, why?
You can ask you hosting provider to increase the memory that is available. This worked for me. The other option is to move your site to somewhere where there is memory available.