pim-community-dev icon indicating copy to clipboard operation
pim-community-dev copied to clipboard

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

Open elrosi opened this issue 1 year ago • 1 comments

: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")

  • in vendor/akeneo/pim-community-dev/src/Akeneo/Platform/Bundle/UIBundle/Resources/views/actions/update.html.twig (line 30)
  • in var/cache/dev/twig/92/920378011cad2e57a4a35193d9a3091d.php twig_get_attribute (line 261)
  • in vendor/twig/twig/src/Template.php -> block_breadcrumbs (line 171)
  • in var/cache/dev/twig/92/920378011cad2e57a4a35193d9a3091d.php -> displayBlock (line 170)
  • in vendor/twig/twig/src/Template.php -> block_pageHeader (line 171)
  • in var/cache/dev/twig/92/920378011cad2e57a4a35193d9a3091d.php -> displayBlock (line 107)
  • in [vendor/twig/twig/src/Template.php ]/_profiler/open?file=vendor/twig/twig/src/Template.php&line=171#line171)-> block_content (line 171)
  • in var/cache/dev/twig/92/920378011cad2e57a4a35193d9a3091d.php -> displayBlock (line 77)
  • in vendor/twig/twig/src/Template.php -> block_page_container (line 171)
  • in var/cache/dev/twig/92/920378011cad2e57a4a35193d9a3091d.php -> displayBlock (line 57)
  • in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  • in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  • in [var/cache/dev/twig/19/19b9b37ef72d8545e1d5a5eb408e85d7.php ]/_profiler/open?file=var/cache/dev/twig/19/19b9b37ef72d8545e1d5a5eb408e85d7.php&line=76#line76)-> display (line 76)
  • in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  • in [vendor/twig/twig/src/Template.php ]/_profiler/open?file=vendor/twig/twig/src/Template.php&line=367#line367)-> displayWithErrorHandling (line 367)
  • in vendor/twig/twig/src/Template.php -> display (line 379)
  • in [vendor/twig/twig/src/TemplateWrapper.php ]/_profiler/open?file=vendor/twig/twig/src/TemplateWrapper.php&line=38#line38)-> render (line 38)
  • in vendor/twig/twig/src/Environment.php -> render (line 280)
  • in vendor/symfony/framework-bundle/Controller/AbstractController.php -> render (line 258)
  • in vendor/symfony/framework-bundle/Controller/AbstractController.php -> renderView (line 266)
  • in vendor/akeneo/pim-community-dev/src/Akeneo/UserManagement/Bundle/Controller/GroupController.php -> render (line 103)
  • in vendor/akeneo/pim-community-dev/src/Akeneo/UserManagement/Bundle/Controller/GroupController.php -> updateGroup (line 43)
  • in vendor/symfony/http-kernel/HttpKernel.php -> create (line 163)
  • in vendor/symfony/http-kernel/HttpKernel.php -> handleRaw (line 75)
  • in vendor/symfony/http-kernel/Kernel.php -> handle (line 202)
  • Kernel->handle()
  • in [public/index.php ]/_profiler/open?file=public/index.php&line=20#line20)(line 20)

elrosi avatar Feb 23 '24 21:02 elrosi

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.

SanHacks avatar Jun 07 '24 19:06 SanHacks