Fatal error: Call to a member function free() on a non-object

agw567

New Member
I get this really annoying problem when i try to use my search.php page.

If i take out the $result->free(); line, it doesn't happen, and I get no error, and no results (which always happens anyway). I'm really new to PHP, so I'm really confused. Is the free line needed at the end of the script?
 

craftygeek

New Member
Its impossible to give you a proper answer without seeing the code.

I'm guessing that you have a class & there is an error of some sort within the search setup in the class....really need to see the code.
 
Top