Hi there,

I have a views content pane based off the default node search index placed inside a panel which is overriding taxonomy term pages. (hopefully haven't lost you with that sentence)

All is working fine, facets are working correctly etc... However I'm getting the below notice and thought just incase this was the one time I haven't done something incorrectly I should report it. Couldn't find anything previous mentions of it on the web.

I'm getting this notice...

Notice: Undefined property: SearchApiViewsQuery::$group_operator in SearchApiViewsQuery->build() (line 143 of C:\wamp\www\my-site\sites\all\modules\search_api\contrib\search_api_views\includes\query.inc).

Seems pretty straight forward the $this->group_operator isn't in existence, but I'm not sure whether my setup is wrong or it's something else.

Any info would be great thanks. Apologies if this ticket has been created in the wrong place.

Comments

damien tournoud’s picture

Priority: Minor » Normal

We saw that too. It's because Search API is assuming that there is a $group_operator as soon as there is a $where, which is not true. A view with just an argument for example will not have a group operator.

drunken monkey’s picture

Status: Active » Needs review
StatusFileSize
new629 bytes

Thanks for reporting! Does the attached patch help?

mh86’s picture

Encountered the same notices and patch from #2 fixes the problem.

mh86’s picture

Status: Needs review » Reviewed & tested by the community
drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Great, committed.

Steven.Pescador’s picture

Worked for me to... Cheers for that Drunken Monkey.

Status: Fixed » Closed (fixed)

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