Opened 9 years ago

Closed 8 years ago

#691 closed defect (incomplete)

drupal xapian-binding for php gives problems

Reported by: ictzara Owned by: Olly Betts
Priority: normal Milestone:
Component: Xapian-bindings (PHP) Version: 1.2.21
Severity: normal Keywords: bindings php drupal
Cc: Blocked By:
Blocking: Operating System: Linux

Description (last modified by Olly Betts)

Hi,

I have problem with xapian-bindings (for php) version 1.2.21 on CentOS 7 linux.

I have isntalled from source: xapian-core-1.2.21 (no problems occured during configure/make/make install)

xapian-omega-1.2.21 (no problems occured during configure/make/make install)

xapian-bindings (for php) 'problem oiccured during make and while execution.

The index creation on drupal crashed with this errormessang in /var/log/httpd/error_log:

PHP Fatal error:  No matching function for overloaded
 'QueryParser_parse_query' in /usr/local/share/php5/xapian.php on line 2930, referer: http://13.41.46.181/dms/?q=admin/config/search/search_api

During the make instruction I got an error in php5/xapian_wrap.cc :

php5/xapian_wrap.cc: In member function ‘virtual std::string SwigDirector_KeyMaker::operator()(const Xapian::Document&) const’:
php5/xapian_wrap.cc:2713:1: warning: control reaches end of non-void function [-Wreturn-type]
 }

And also as shown in the attachement.

Kind Regards,

Harry Cornelis

Attachments (1)

Xapian_errors.txt (15.7 KB ) - added by ictzara 9 years ago.
Error log (make ) and an extract from /var/log/httpd/error_log

Download all attachments as: .zip

Change History (5)

by ictzara, 9 years ago

Attachment: Xapian_errors.txt added

Error log (make ) and an extract from /var/log/httpd/error_log

comment:1 by ictzara, 9 years ago

Component: OtherXapian-bindings (PHP)

comment:2 by ictzara, 9 years ago

Description: modified (diff)

comment:3 by Olly Betts, 9 years ago

Milestone: 1.2.22

Please don't set a milestone for a ticket unless you're promising to you'll implement a fix in time for a particular release.

Those compile warnings are harmless - that function ends by calling a PHP API function which doesn't return, so we never reach the missing return statement.

The No matching function for overloaded [...] error means that drupal is passing an unexpected number of parameters and/or combination of parameter types.

This method expects to be passed either a string, or a string then an integer, and both of those cases work in a quick test. So this doesn't appear to be a regression is Xapian - instead it looks like something up with drupal's xapian integration code, perhaps in combination with your data.

You probably want to report this to whoever maintains drupal's xapian integration.

comment:4 by Olly Betts, 8 years ago

Description: modified (diff)
Resolution: incomplete
Status: newclosed

No follow-up for 3 weeks, so closing as "incomplete".

If this is an issue in Xapian, we need more information to be able to address it - add a comment explaining what parameters are being passed to this method which ought to work but don't, and we can reopen.

Note: See TracTickets for help on using tickets.