0

Type Error occurred when creating object: Magento\Search\Model\EngineResolver, Argument 2 passed to Magento\Search\Model\EngineResolver::__construct() must be of the type array, null given

enter image description here This error is appearing on the product page, after I have upgraded Magento 2.3 to 2.4

not sure if its a version issue

1
  • any thoughts on this ? Commented Oct 8, 2021 at 8:45

1 Answer 1

1

According to the screenshot, the error is from the third party extension.

Kindly disable this extension :

app/code/Amasty/Shopby

Run all the commands like upgrade, deploy and compilation one's and then check.

12
  • Thanks for the answer @Dhiren, i can not disable it as many other modules are dependent on this module. Commented Oct 8, 2021 at 9:54
  • It seems like elastic search issue. Commented Oct 8, 2021 at 9:54
  • you need to just disable for the debug purpose and then you can reenable it or install extension updated version which compitible with new magento version. Commented Oct 8, 2021 at 10:05
  • Its the latest version of module. i ma using php 7.3 on magento 2.4.3 which runs on 7.4 is that possible cause of issue ? Commented Oct 8, 2021 at 10:29
  • any thoughts @Dhiren ? Commented Oct 8, 2021 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.