Reproduce by including a single quote in the search filter.

Fatal error: Unsupported operand types in ...modules/views/modules/search/views_handler_filter_search.inc on line 156

CommentFileSizeAuthor
#5 1148688.patch1.37 KBdawehner
#1 views6.png24.18 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)
FileSize
24.18 KB

So if i input a single "’" it works fine for me.

Can you paste the exact char you used?

jtwalters’s picture

I used the character: '

dawehner’s picture

I get the same result as mentioned above. Can you still reproduce the error?

jtwalters’s picture

Title: Single quote (apostrophe) in search filter input causes fatal error » Search filter fatal error with multiple words where one word < 3 characters

More info:
It appears to happen if you include at least one positive word of at least 3 characters AND another word less than 3 characters.

Try searching "fo bar" or "f bar"

Fatal error: Unsupported operand types in ... sites/all/modules/views/modules/search/views_handler_filter_search.inc on line 156

dawehner’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
1.37 KB

Can you please test this patch and see that this doesn't brake something?

jtwalters’s picture

#5 patch works for me. I tested several combinations of searches with success.

dawehner’s picture

Status: Needs review » Fixed

Cool. Thanks for testing. Commited.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.