cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4.2 CatalogSearch blank page when I search something

Magento 2.4.2 CatalogSearch blank page when I search something

I'm having a problem searching for products.

 

When I try to perform a search and press the enter key, I am directed to the catalog search/result/ page, But this page does not show any product just showing some three dots and other some text.

 

I tried to clean the Elastic Search indexes, as well as to clean the cache, but nothing, I always get a blank page without HTML. The logs do not report any kind of errors.

 

That said, I'm using the Mageplaza and Layered Navigation modules.

 

How can I solve this problem?

 

Magento Issue.PNG

1 REPLY 1

Re: Magento 2.4.2 CatalogSearch blank page when I search something

Hello @waqasshouka274 

 

You need to set the visibility attribute on the product to catalog, search first. That will make sure the product can be found.
if all is good then run below command:

sudo service elasticsearch start
bin/magento indexer:reindex
bin/magento c:f

It may help you!
Thank you

Problem solved? Click Accept as Solution!