Unable to use remote xapian-tcpserv
Jeremy - July 5, 2008 - 14:17
| Project: | xapian |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Jeremy |
| Status: | closed |
Jump to:
Description
When attempting to deploy this module on drupal.org, we ran into a snag in which it seems the support for remote xapian servers is not working properly. The error is:
Fatal error: No matching function for overloaded 'new_WritableDatabase' in /usr/share/php5/xapian.php on line 1118The error seems to be that we're passing in an invalid $db_source when configured for a remote database (line 348 of the xapian.module). With a local database $db_source is a string, and this works fine. With a remote database, $db_source is an object and new_WritableDatabase evidently isn't expecting that.
I'm opening the bug now to track this, but I'm offline for a few days. I'll look into it more when I return. Patches are of course welcome!

#1
This error is because the Xapian API is not consistent between local and remote databases. Fix committed, based on this old Xapian mailing list discussion.
#2
Automatically closed -- issue fixed for two weeks with no activity.