Fix Product Collection Changes issue in Magento 2.4.5 by Amasty

Installs: 44 900

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 1

Forks: 2

Open Issues: 0


1.0.2 2022-11-25 09:53 UTC

This package is auto-updated.

Last update: 2024-05-26 13:19:36 UTC


After upgrade Magento to version 2.4.5 you can see this error: TypeError: Magento\Elasticsearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplier::categoryProductByCustomSortOrder(): Argument #1 ($categoryId) must be of type int, array given

This bug is related to the latest Magento changes and custom extensions like Amasty Improved Layered Navigation.

To see more information


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 this package public.