After upgrading Magento to version 2.4.5 you can see the error: TypeError: Magento\Elasticsearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplier::categoryProductByCustomSortOrder(): Argument #1 ($categoryId) must be of type int, array given
Moreover, in Magento 2.4.5, if you have "display out of stock items" enabled, the layered navigation will not work correctly.
This bug is related to recent Magento changes and affects custom extensions such as Amasty Improved Layered Navigation.
Magento appears to fix this bug only in the next release, but you don't have to wait for them to fix it – we've developed a free fixpack so that you can handle the issue.
If you are Amasty customer, you can fix this error by installing additional package from our private repository:
composer require amasty/module-mage-2.4.5-fix
But this case can be reproduced without our extension. This is why we made the package public.
We use cookies to help improve our services, make personal offers, and enhance your experience. If you do not accept optional cookies below, your experience may be affected. If you want to know more, please read the Cookie Policy
Please select and accept your Cookies Group
Cookie Name | Cookie Provider | Cookie Description | Cookie Lifetime | Cookie Type |
---|---|---|---|---|
Login and Registration Form