cancel
Showing results for 
Search instead for 
Did you mean: 

2.4.1 Elasticsearch configuration shows no product pages

2.4.1 Elasticsearch configuration shows no product pages

Using Magento 2.4.1.  Elasticsearch successfully installed and configured but product pages shows errors

Error: Call to a member function isAvailableForCompare() on null in /home/happysite/public_html/vendor/magento/module-catalog/view/frontend/templates/product/view/addto/compare.phtml:11 Stack trace: #0 
/home/happysite/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(71): include() #1 
/home/happysite/public_html/vendor/magento/framework/View/Element/Template.php(273): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\View\AddTo\Compare\Interceptor), '/home/happysite...', Array) #2 
/home/happysite/public_html/generated/code/Magento/Catalog/Block/Product/View/AddTo/Compare/Interceptor.php(392): Magento\Framework\View\Element\Template->fetchView('/home/happysite...') #3
 /home/happysite/public_html/vendor/magento/framework/View/Element/Template.php(303): Magento\Catalog\Block\Product\View\AddTo\Compare\Interceptor->fetchView('/home/happysite...') #4 
/home/happysite/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1111): Magento\Framework\View\Element\Template->_toHtml() #5 
/home/happysite/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #6

 

curl -XGET 'http://localhost:9200'
{
  "name" : "node-1",
  "cluster_name" : "my-application",
  "cluster_uuid" : "i removed info",
  "version" : {
    "number" : "7.10.1",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "i remove info",
    "build_date" : "2020-12-05T01:00:33.671820Z",
    "build_snapshot" : false,
    "lucene_version" : "8.7.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

 

 

1 REPLY 1

Re: 2.4.1 Elasticsearch configuration shows no product pages

Hello,

 

Please do let me know the version of elestic search.

 

For Magento 2.4.x, Elasticsearch 7.6.x is tested and recommended. 

 

Thank you.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.