Shop and search results broken after update … AGAIN

Solved15 replies3 participantsUpdated by Tony Rodriguez

  • Avatar: pover
    pover
    Participant

    Hello,

    After our monthly XStore update, we noticed that the search results on https://maanu.pl/ stopped working correctly.

    For example, when a user types “szampon” in the search field and presses Enter, the search results page does not display products properly. The shop page also seems to be affected, even though everything worked correctly before the update.

    A few months ago, I reported a very similar issue here:
    https://www.8theme.com/topic/shop-and-search-results-broken-after-today-update/#post-462016

    Could you please investigate and fix this issue permanently?
    We would also appreciate clear instructions on how to handle or prevent the same issue after future XStore updates.

    Best regards,

    15 Answers

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, pover,

    Please update the plugin provided to you in the private content and check whether the issue persists

    Best regards,
    8Theme Team

    Please contact administrator
    for this information.
    Avatar: pover
    pover
    Participant
    Avatar: pover
    pover
    Participant

    Do you have any updates? its very important feature for our customers

    Avatar: pover
    pover
    Participant

    Dear Support,

    Do you have any updates on this issue?

    I downgraded the theme to version 9.7, and the search results started working again.

    Best regards,

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, pover,

    In this case, we kindly ask you to provide us with access to the FTP and the domain control panel.

    Best regards,
    8Theme Team

    Avatar: pover
    pover
    Participant

    OK, please provide your email address so I can create a WP Admin account for you. We have 2FA enabled, so you will need to complete the verification process.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    We have provided the email address in the private content.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: pover
    pover
    Participant

    The admin account has been created. Please change the password using the “Forgot password” option.

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, pover,
    Thank you for your response. In addition to access to the admin panel, we also require FTP access.

    Best regards,
    8Theme Team

    Avatar: pover
    pover
    Participant

    Dear Support,

    I have attached a one-time link to retrieve the password.

    Please let me know what you plan to do with these credentials. Also, please keep in mind that this is production access to a live website where customers purchase products, so no changes should be made that could disrupt the website or the purchasing process.

    Thank you.

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello,
    We have made some updates. Please check if the issue still persists.

    Best regards,
    The 8Theme Team

    Avatar: pover
    pover
    Participant

    It looks like the problem has been solved. Thank you.

    Could you please provide the following information:

    What caused the issue?
    What exactly was changed to fix it?
    How can we prevent this kind of issue after future theme/plugin updates?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, pover,

    The issue was found in XStore’s custom product search SQL within the theme-functions.php file.
    In the WPML-specific SKU search section, the SQL condition contained incorrect parenthesis grouping.
    This malformed WHERE clause disrupted the product search query on the search results page, causing searches such as ?s=szampon&post_type=product&et_search=true&lang=pl to return no products.

    What was changed to fix it?
    The fix involved a one-line correction in the WPML SKU search condition.
    The closing SQL fragment was changed from ") )" to ")".
    This adjustment removed an extra closing parenthesis and restored the correct grouped condition:
    OR ( sku_match AND current_language_match [AND stock_match] )

    How you can prevent this issue after future updates?
    – Keep any custom search fixes in a child theme or a small custom plugin instead of editing the parent theme directly.
    – After each XStore or XStore Core update, re-test the following:
    – Product search page
    – SKU search
    – WPML language-specific search
    – Use a staging site before updating the production environment.
    – Maintain a small regression checklist for:
    – ?s=keyword&post_type=product&et_search=true
    – The same query with lang=...
    – In-stock / out-of-stock behavior
    – If the parent theme file is updated again, compare theme-functions.php against your working version before deployment.

    Best regards,
    8Theme Team

    Avatar: pover
    pover
    Participant

    Thanks for the support! My topic “Shop and search results broken after update … AGAIN” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Dear pover,

    It’s great having you in our WordPress & WooCommerce community!

    Every insight you share helps us refine XStore and build tools that empower thousands of online store owners worldwide.

    Together, we grow stronger with every release.

    Topic closed.
    The 8Theme Team

The issue related to '‘Shop and search results broken after update … AGAIN’' has been successfully resolved, and the topic is now closed for further responses