Question

After logging into backend and navigating to Stores > Configuration > Catalog, Site crashes and shows this error, also the search on the site shows same error.Same error on catalog and catalog search

Please note that Catalog Search on the index management shows "Reindex Required", which I have tried to resolve through multiple ways but the case remains same.

PS: magento version 2.4.1

No correct solution

OTHER TIPS

If you have upgraded to the latest magento version please verify 2.4. changelog:

"The MySQL search engine has been removed from Magento 2.4.0 and replaced as the default search engine with Elasticsearch. Elasticsearch provides superior search capabilities as well as catalog performance optimizations. All merchants must have Elasticsearch to install and deploy Magento 2.4.0."

There are chances within your search engine Mysql must be selected. You will have to set it to Elastic search and also install elastic search on the server.

  1. Login into Magento Admin
  2. goto system configuration -> Catalog Search
  3. check the search engine update that to elasticseatch7 configure the host & ports then save

Further, follow these commands :

php bin/magento cache:flush
php bin/magento indexer:reset
php bin/magento indexer:reindex

Also, make sure the Elastic search server version is 7.

There may be also the case ElasticSearch module is de-activated it should be reactivated. ElasticSearch is required to run Magento 2.4.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top