[Xapian-discuss] PHP and Enquire_get_eset

Olly Betts olly at survex.com
Fri Dec 15 15:56:38 GMT 2006


On Fri, Dec 15, 2006 at 01:35:03AM -0600, InsaneToucan wrote:
> Fatal error: Call to a member function get_eset() on a non-object in
> simplesearch.php on line 56

This is because $enquire wasn't created using "new XapianEnquire()" but
with "new_Enquire()", so it's not a PHP object.  You need to convert
the script to using the new OO syntax (or use the old non-OO syntax
everywhere, but that's deprecated so I don't recommend doing so).

There's a script to do most of the tedious work of converting.  See
here for the script and some more explanation:

http://thread.gmane.org/gmane.comp.search.xapian.general/3561/focus=3562

Cheers,
    Olly



More information about the Xapian-discuss mailing list