akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
950 stars 513 forks source link

Opening the CREATE GROUP page reports Error 500, Impossible to access an attribute ("indexPath") on a string variable ("New Group") #20401

Open elrosi opened 4 months ago

elrosi commented 4 months ago

:bug: Opening the CREATE GROUP page reports Error 500, Impossible to access an attribute ("indexPath") on a string variable ("New Group") :bug:

Edition | CE Version | 7.0.50 Server version | Apache/2.4.41 (Ubuntu)

Error 500, Impossible to access an attribute ("indexPath") on a string variable ("New Group")

SanHacks commented 3 weeks ago

Hi @elrosi 😃 , did you happen to get to the root cause of this issue? if so, what was the resolution?

I have found a workaround by commenting out $blocks in the cache file that renders that twig, e.g. var/cache/dev/twig/19/19b9b37ef72d8545e1d5a5eb408e85d7.php

yield from $this->unwrap()->yieldBlock('image', $context, []);//$blocks);
yield from $this->unwrap()->yieldBlock('navButtons', $context, []);//$blocks);
yield from $this->unwrap()->yieldBlock('title', $context, []);//$blocks);
yield from $this->unwrap()->yieldBlock('meta', $context, []);//$blocks);

But I am in need of a permanent solution, as that temp is wiped every time cache is cleared.