/*wp_block_styles_on_demand_placeholder:69b3be30defd4*/ /*# sourceURL=wp-block-library-inline-css */

WooCommerce 5.5.1 issue with Divi Search

We have had some reports of Divi Search not working well with WooCommerce and BodyCommerce – it displays a white page. Upon investigation, we discovered that it is actually an issue with the Divi Theme and not something related to our plugins.

We did not want to leave you guys hanging, so we dug a little deeper and found a solution.

Problem

The Divi Theme Builder is not working when searching for products, for example: /?s=shirt&post_type=product

This works fine on older versions of WooCommerce, but NOT in the latest update which is WooCommerce 5.5.1

Solution

The solution is to download the file below, unzip it and upload to the directory: \wp-content\plugins\woocommerce\includes\class-wc-query.php

Here is the code we changed for your reference

12 Comments

    • No stupid question

      You can use FTP or file manager on your server.

      or you can install a file manager plugin on your website to update (but NOTE – delete after)

      Hope this helps

  1. You guys are heroes. This fixed the divi builder not directing properly to the search.

    • Thank you for the comment, glad it helped 😀

  2. Thank you, it worked for me 🙂

    • Good to hear 😀

  3. it doesn’t work for me

    • Try clear cache or disable any other plugins to see if this solves it.

  4. Thanks a lot it works very well. (even it is an Oxygen site)

    • Great to hear – thanks for the comment

  5. Hi. I did this. But still not working for me.

    • Try clear cache or disable any other plugins to see if this solves it.

Submit a Comment

Explore more from Divi Engine

Divi Form Builder

Divi Form Builder

From simple contact forms to complex frontend post or product creation, Divi Form Builder has you covered.

Divi Form Builder
Find out more
Divi Machine

Divi Machine

Build complex websites that displays dynamic fields you can filter, search and so much more with the Divi Builder.      

Divi Machine
Find out more
Divi BodyCommerce

Divi BodyCommerce

A versatile toolkit for developers using Divi and WooCommerce together, designed to boost your e-commerce site and achieve greater conversion rates.    

Divi BodyCommerce
Find out more
Divi Handoff

Divi Handoff

Let clients update content without touching the Divi Builder. Design layouts once, connect them to Flexible Content fields, and give editors simple forms for text, images, and sections.

Divi Handoff
Find out more
Divi Loop Extender

Divi Loop Extender

Unlock the Full Power of Divi 5 Loop Builder Add advanced sorting, filtering, and relationship logic right inside the Visual Builder.

Divi Loop Extender
Find out more
Divi Membership

Divi Membership

Monetize your Divi websites by transforming them into membership sites with seamless subscription management, user-friendly interfaces, and customizable membership tiers.

Divi Membership
Find out more
Divi Machine Accounts

Divi Machine Accounts

Build an account area for your customers to edit their details, access wishlist, submitted posts and more. *Note: Requires Divi Machine installed and active

Divi Machine Accounts
Find out more
Divi Ajax Filter

Divi Ajax Filter

Filter WooCommerce, Posts & Custom Posts without reloading the page.    

Divi Ajax Filter
Find out more
Divi Mobile

Divi Mobile

Divi Mobile helps you create beautiful looking mobile menus without having to code.

Divi Mobile
Find out more
Divi Nitro

Divi Nitro

Give your Divi website that extra boost of speed with our Divi Nitro plugin to enhance your customer's experience.

Divi Nitro
Find out more
Divi Protect

Divi Protect

Password protect the content of your Divi website with our Divi Protect plugin. Keep unwanted eyes out!

Divi Protect
Find out more
Divi Mega Menu

Divi Mega Menu

Create stunning, responsive, and content-rich mega menus using the Divi Builder you already know. No coding required.  

Divi Mega Menu
Find out more