Support » Plugin: Relevanssi - A Better Search » Uninstall hangs

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter gabrieldvine

    (@gabrieldvine)

    I am trying to uninstall the plugin because it didn’t work, by the way. It wouldn’t search both posts and WooCommerce products, and I went through all the troubleshooting I could find on the support pages and forum.

    Plugin Author Mikko Saari

    (@msaari)

    The most common reason for not finding products is a theme that sets the search to only search for products or posts. That happens occasionally with WooCommerce themes.

    You can usually force the search to show both posts and products if you just add &post_types=post,product to the end of the URL. If that works, it can be adjusted in a way that doesn’t require any changes to the URL, but that’s an easy way to check this.

    But yeah, there’s indeed a bug in the plugin uninstall process. I’ll fix that soon, just update to 4.0.1 when it’s out tomorrow and you’ll be able to uninstall cleanly. Meanwhile, do give the post type parameter a go – perhaps it’ll fix the problem.

    Thread Starter gabrieldvine

    (@gabrieldvine)

    Thanks for your quick response, Mikko – a sign of real professionalism.

    I added the query string and that indeed fixed my problem. I tried a couple quick hacks to attempt adding that query into the PHP by hand but I’m not knowledgeable enough to pull it off.

    Care to share the permanent fix?

    Plugin Author Mikko Saari

    (@msaari)

    add_filter('relevanssi_modify_wp_query', 'rlv_force_post_product');
    function rlv_force_post_product($query) {
        $query->query_vars['post_types'] = "post,product";
        return $query;
    }

    Add that to theme functions.php, and that should do the trick.

    Thread Starter gabrieldvine

    (@gabrieldvine)

    Thank you so much! Great job. You probably want to add this fix to your knowledge base somewhere. Also a list of the built-in plugin methods such as rlv_force_post_product() in the docs would be useful.

    Plugin Author Mikko Saari

    (@msaari)

    That’s not a built-in method, it’s something I created now just for you =)

    This issue is mentioned in the Relevanssi WooCommerce manual page, but not with this particular fix. I’ll add it there.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uninstall hangs’ is closed to new replies.