• Resolved _Entrepreneur

    (@_entrepreneur)


    For some reason the relevanssi search no long displays any results. This has been working just fine on my site in the page. When I look at the user searches log I can see the search results being recorded but the # of hits is 0 for most things over the past couple of weeks. Some of the terms in the last 30 days do show stuff so it was working at somepoint over this last month but I am not sure why it has stopped.

    I am running the latest wp version with a Genesis child theme. Some of the other plugins installed include WP Super Cache, iThemes Security.

    I have tried go back to a previous version of the plugin (and disabling/reactiving after each change) as well as disabling both of the plugins above.

    Here’s a link to a search result that returns nothing now but should return at least 10 results.

    Any help on what could be going on would be appreciated.

    https://www.ads-software.com/plugins/relevanssi/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Mikko Saari

    (@msaari)

    What has changed? Have you updated the theme, or added a plugin?

    I’d ask you for the search results template, but that’s not helpful when you’re using Genesis.

    I don’t know, very hard to say anything about this without taking a look under the hood.

    Hi, just to let you know, I have the same problem, albeit in a completely different set up. I also tried going back to a previous version as well as disabling plugins. Will write you directly as well, just wanted to chime in to “_Entrepreneur”, you are not alone ??

    Same problem here, realized today that the search results are empty. I am using Relevanssi version 3.4.2 and have not added plugins recently. My caching plugin is WP Rocket.

    Here is a test-link to my site: Click here

    Plugin Author Mikko Saari

    (@msaari)

    If you need help for something like this, open a new support thread and show me your search results template.

    I just sent a message via the support form on your website.

    Thread Starter _Entrepreneur

    (@_entrepreneur)

    Mikko,
    I just submitted a message through your site. I also included a paste of my search.php as well.

    PS: I just saw in my site that V3.5 was released so you all may want to try upgrading to see if that resolves your issue. It didn’t make a difference for me.

    Plugin Author Mikko Saari

    (@msaari)

    I don’t do email support for non-paying customers. Lars is a paying customer.

    _Entrepreneur, Genesis shouldn’t be a problem. Are you perhaps using custom field sorting? That’s something that can break the search, if there’s a meta_key parameter in the search. If that’s the problem, adding this to the theme functions.php should solve the problem:

    add_filter('pre_get_posts', 'rlv_meta_fix', 99);
    function rlv_meta_fix($q) {
    	$q->set('orderby', 'relevancy');
    	$q->set('meta_key', '');
    	return $q;
    }

    iThemes Security and various cache plugins are not a problem.

    Plugin Author Mikko Saari

    (@msaari)

    Are you perhaps using Yoast’s Local SEO? If so, this might help:

    add_filter('pre_get_posts', 'rlv_meta_fix', 99);
    function rlv_meta_fix($q) {
    	$q->set('meta_query', '');
    	return $q;
    }
    Thread Starter _Entrepreneur

    (@_entrepreneur)

    Yes, I am using Yoast’s Local SEO plugin. I’ll try the suggested filter again and see if that makes a difference.

    _Entrepreneur, do you use Yoasts Local SEO plugin? That was the problem for me, and the solution by Mikko for that conflict has worked on my site.

    Thread Starter _Entrepreneur

    (@_entrepreneur)

    Adding the filter to my functions.php file did the trick!

    add_filter('pre_get_posts', 'rlv_meta_fix', 99);
    function rlv_meta_fix($q) {
    	$q->set('meta_query', '');
    	return $q;
    }

    Thanks so much Lars & Mikko for your help!

    It was all Mikkos solution, I just mentioned that I use that plugin! ??

    Plugin Author Mikko Saari

    (@msaari)

    Actually, the fix would be better like this:

    add_filter('relevanssi_modify_wp_query', 'rlv_meta_fix', 99);
    function rlv_meta_fix($q) {
    	$q->set('meta_query', '');
    	return $q;
    }

    This way it’ll only apply to Relevanssi searches.

    Thread Starter _Entrepreneur

    (@_entrepreneur)

    That worked perfectly! Thanks so much Mikko!

    Hi,

    I’ve tried to add the filter on function.php of my theme website, but no way… 0 result for all query ??

    my theme WeeklyNews (child theme)

    here my website

    many thanks
    Phil

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Search Results Blank’ is closed to new replies.