MDVA-30815: Elasticsearch blank search results
The MDVA-30815 patch fixes the issue where Elasticsearch displays a blank page when the search results’ limiter options are changed. This patch is available when the Quality Patches Tool (QPT) 1.0.7 is installed. Please note that the issue was fixed in Adobe Commerce 2.3.5.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce on cloud infrastructure 2.3.3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.3.2 - 2.3.3-p1
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
When using Elasticsearch, if you change the search results’ limiter options, Adobe Commerce displays a blank page.
Prerequisites:
Elasticsearch is enabled. Go to STORES > Settings > Configuration > Catalog > Catalog Search.
Steps to reproduce:
- Go to your site.
- Search for a product on the main search field.
- After the search result pages are displayed, click on the last page in the search result pages.
- Select Show xx per page from the limiter option. Make sure that this is a different search result number limit than currently configured.
Expected results:
The page displays the configured number of product results.
Actual results:
Blank page displays. This error can also be seen in the var/report
: `“0”:"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near’`
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Software Update Guide > Apply Patches in our developer documentation.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in our developer documentation.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in our support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in our support knowledge base.
For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.