Does this happen when Search Autocomplete is disabled and Relevanssi is enabled?
This happens when Search Autocomplete (SA) is enabled and Relevanssi is enabled and Relevanssi is set to True in SA settings. Doing a search using Relevanssi does not throw the error, only when typing into the search bar and waiting for the delay to kick in.
With Relevanssi set to False in SA settings, the suggestions actually show.
So I had some time to do a little further digging and this is what I have come up with.
The script is throwing out two errors:
line 1089: if ($query->is_admin) $make_excerpts = false;
line 1091: if ($query->query_vars['paged'] > 0) {
is_admin checks to see if the administration panel is being displayed. Notice, for ajax requests is_admin will always return true. And the log is saying the property is not even defined, so either WP has a problem on its backend or the variable is getting lost mid-way through.
So I looked to see where SA was passing the variable from. It looks like the first occurrence of $query
is on line 123, defining it as a global variable. Did a quick dump of the variable into the log and nothing shows up. This had me confused because I know $wp_query
is a WP global variable, but I was not sure of $query
, or if you had defined it somewhere earlier.
Did a little testing and changed $query
to $wp_query
on line 123 and all the instances of it and that fixed the first error. The second error is still occurring. Which seems to be firing off because the paged index is not set, which I thought $wp_query
would have taken care of by setting the default values.
None the less, tested this out by putting $wp_query->query_vars['paged'] = 1;
right below all the others. And this seems to make everything work.
So for the time being it is working. My fixes may not be the “right” way to do things or you might have other reasonings behind everything, but hope this helps you.
These should be cleared up in the latest version (2.1.12)
Closing due to inactivity.