Warning: Illegal offset type in vendor/magento/module-catalog/Model/CategoryRepository.php on line 133
-
20-12-2020 - |
Lösung
Had the same issue in 2.1.8. Though for me it only occured when the FPC was enabled. It seems to be caused by:
$this->setCategoryId(current($categories->getIterator()));
in vendor/magento/module-catalog/Block/Product/ListProduct.php
. An issue that was fixed in Magento 2.2.0. New code is:
$this->setCategoryId(current($categories->getIterator())->getId());
Upgrading to 2.2.x should resolve the issue. If that's not an option you could also try disabling FPC.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange