4

On category page I am getting this exception

Catalog Layer has been already created

I tried to debug it in vendor/magento/module-catalog/Model/Layer/Resolver.php, for the moment i commented the code that triggers exception

public function create($layerType)
{
    /*if (isset($this->layer)) {
        throw new \RuntimeException('Catalog Layer has been already created');
    }*/
    if (!isset($this->layersPool[$layerType])) {
        throw new \InvalidArgumentException($layerType . ' does not belong to any registered layer');
    }
    $this->layer = $this->objectManager->create($this->layersPool[$layerType]);
}
4
  • Is there any third party extension use for the category layer navigation or something? Jul 8, 2020 at 14:34
  • @DhirenVasoya think there's one from Amasty Jul 8, 2020 at 15:35
  • Try to disable that one and then check. Jul 9, 2020 at 5:13
  • @tarekfellah did you find any solution for this?
    – Nayem323
    Sep 9, 2020 at 16:17

0

Your Answer

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

Browse other questions tagged or ask your own question.