Skip to content

magento man

Elasticsearch7 returns string but not array for the category page

When I tried to load my category page, the following error showing… TypeError: Return value of MagentoElasticsearch7ModelClientElasticsearch::query() must be of the type array, string returned in /home/758955.cloudwaysapps.com/svjdbvkfqv/public_html/vendor/magento/module-elasticsearch-7/Model/Client/Elasticsearch.php:367> Versions details Windows 10 Magento 2.4.2 Elasticsearch 7.6 installed in cloudways I updated… Read More »Elasticsearch7 returns string but not array for the category page

Inject dependency based on php version

I use soap to do some calls to a remote server, php has changed method signature for __doRequest between php 7.4 & 8.x, is there any di.xml tag that can conditionally change the loaded class based on the php version?