netgen / TagsBundle

Netgen Tags Bundle is an eZ Platform bundle for taxonomy management and easier classification of content, providing more functionality for tagging content than ezkeyword field type included in eZ Platform kernel.
https://netgen.io
GNU General Public License v2.0
48 stars 44 forks source link

TagsValueValidator Error after updating to ibexa 4.6 #164

Closed paulKopf closed 1 month ago

paulKopf commented 2 months ago

Versions: ibexa/experience: 4.6.11, netgen/tagsbundle: 5.2.2

After updating our Project we get the following error when we want to edit an landing page that contains a tag:

`Twig\Error\RuntimeError: Key "TagsValueValidator" does not exist as the sequence/mapping is empty.

at vendor/netgen/tagsbundle/bundle/Resources/views/ibexa/admin/field/edit/view/default.html.twig:9 at Twig\Extension\CoreExtension::getAttribute() (var/cache/dev/twig/dc/dc782a3615a3d1c0f320b0a135fc550c.php:63) at TwigTemplate_c116990e317192c7d20c4a9e9e92317d->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/f9/f9302cf4a513abd58f4273320985adce.php:193) at __TwigTemplate_c66158c8a7d857f9235820b12700befe->block_ezplatform_fieldtype_eztags_widget() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (vendor/twig/twig/src/Template.php:145) at Twig\Template->displayBlock() (vendor/symfony/twig-bridge/Form/TwigRendererEngine.php:58) at Symfony\Bridge\Twig\Form\TwigRendererEngine->renderBlock() (vendor/symfony/form/FormRenderer.php:258) at Symfony\Component\Form\FormRenderer->searchAndRenderBlock() (var/cache/dev/twig/6f/6fb6243fe05ebf8305e507e8b23b78c4.php:608) at TwigTemplate_9c68852663206e2ba7596f7a527c4beb->block_form_row_fieldtype() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/6f/6fb6243fe05ebf8305e507e8b23b78c4.php:279) at TwigTemplate_9c68852663206e2ba7596f7a527c4beb->block_form_row() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (vendor/twig/twig/src/Template.php:145) at Twig\Template->displayBlock() (vendor/symfony/twig-bridge/Form/TwigRendererEngine.php:58) at Symfony\Bridge\Twig\Form\TwigRendererEngine->renderBlock() (vendor/symfony/form/FormRenderer.php:258) at Symfony\Component\Form\FormRenderer->searchAndRenderBlock() (var/cache/dev/twig/6f/6fb6243fe05ebf8305e507e8b23b78c4.php:775) at __TwigTemplate_9c68852663206e2ba7596f7a527c4beb->block_form_rows() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/6f/6fb6243fe05ebf8305e507e8b23b78c4.php:696) at TwigTemplate_9c68852663206e2ba7596f7a527c4beb->block_form_widget_compound() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/11/11e3564b3882a35e4ff5030ac12f9908.php:225) at TwigTemplate_9dc65de9a4d203e8bd6a3846369d2703->block_form_widget() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (vendor/twig/twig/src/Template.php:145) at Twig\Template->displayBlock() (vendor/symfony/twig-bridge/Form/TwigRendererEngine.php:58) at Symfony\Bridge\Twig\Form\TwigRendererEngine->renderBlock() (vendor/symfony/form/FormRenderer.php:258) at Symfony\Component\Form\FormRenderer->searchAndRenderBlock() (var/cache/dev/twig/ce/ce53989549e6187efe9d8af75f36dcf3.php:84) at __TwigTemplate_7809863a23fa1c853a06c0cca2121774->{closure}() (vendor/twig/twig/src/Extension/CoreExtension.php:1919) at Twig\Extension\CoreExtension::captureOutput() (var/cache/dev/twig/ce/ce53989549e6187efe9d8af75f36dcf3.php:68) at TwigTemplate_7809863a23fa1c853a06c0cca2121774->macro_render_form_field() (vendor/twig/twig/src/Extension/CoreExtension.php:1293) at Twig\Extension\CoreExtension::callMacro() (var/cache/dev/twig/ce/ce53989549e6187efe9d8af75f36dcf3.php:147) at TwigTemplate_7809863a23fa1c853a06c0cca2121774->{closure}() (vendor/twig/twig/src/Extension/CoreExtension.php:1919) at Twig\Extension\CoreExtension::captureOutput() (var/cache/dev/twig/ce/ce53989549e6187efe9d8af75f36dcf3.php:129) at TwigTemplate_7809863a23fa1c853a06c0cca2121774->macro_render_field_group() (vendor/twig/twig/src/Extension/CoreExtension.php:1293) at Twig\Extension\CoreExtension::callMacro() (var/cache/dev/twig/c6/c6792a266f7d23a33e395cf11ea18eeb.php:678) at TwigTemplate_b8c55c3c98d7533a7e172d5f41ec2b6e___30041885->block_anchor_section_body() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/db/db25e1499881100d02102b7f8eebe8a4.php:95) at TwigTemplate_1d4dc550d6545152b0b06ad325cbc5af->block_anchor_section_content() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/db/db25e1499881100d02102b7f8eebe8a4.php:64) at TwigTemplate_1d4dc550d6545152b0b06ad325cbc5af->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/c6/c6792a266f7d23a33e395cf11ea18eeb.php:627) at TwigTemplateb8c55c3c98d7533a7e172d5f41ec2b6e30041885->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/c6/c6792a266f7d23a33e395cf11ea18eeb.php:301) at __TwigTemplate_b8c55c3c98d7533a7e172d5f41ec2b6e->block_form_fields() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (vendor/twig/twig/src/Template.php:482) at Twig\Template->yieldParentBlock() (var/cache/dev/twig/f7/f7ec386a9ee5c71efe5f8a722de9389b.php:189) at TwigTemplate_1af65eb41a6429ec4d9774fd794096f2->block_form_fields() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/c6/c6792a266f7d23a33e395cf11ea18eeb.php:240) at TwigTemplate_b8c55c3c98d7533a7e172d5f41ec2b6e->block_form() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/1f/1f177e6df715b0262230f6cdd9d0904d.php:920) at TwigTemplate_ccf98c9b7a731a4178b8aa5dc9a93322_1948410833->block_content() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/f8/f8909782bcab0f8aeb0923bd760ec3c1.php:49) at TwigTemplate_30554fc03ea9b0b0a3c4cfef686a2ad0->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/18/18f0b578c8a54c05cc9e4fc0e056f31b.php:59) at TwigTemplate_160dfdce3df31c8dac658ee4b3e72fbe->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/c6/c6792a266f7d23a33e395cf11ea18eeb.php:83) at __TwigTemplate_b8c55c3c98d7533a7e172d5f41ec2b6e->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/f7/f7ec386a9ee5c71efe5f8a722de9389b.php:59) at TwigTemplate_1af65eb41a6429ec4d9774fd794096f2->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/1f/1f177e6df715b0262230f6cdd9d0904d.php:820) at TwigTemplateccf98c9b7a731a4178b8aa5dc9a933221948410833->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/1f/1f177e6df715b0262230f6cdd9d0904d.php:615) at TwigTemplateccf98c9b7a731a4178b8aa5dc9a93322942026076->block_body() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/bb/bb37705a1ccddd50ac26b0bc8b02f63a.php:72) at TwigTemplate_ae1b9ce83de9e367dbcd552e55ffc75f->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/1f/1f177e6df715b0262230f6cdd9d0904d.php:591) at TwigTemplateccf98c9b7a731a4178b8aa5dc9a93322942026076->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/1f/1f177e6df715b0262230f6cdd9d0904d.php:194) at __TwigTemplate_ccf98c9b7a731a4178b8aa5dc9a93322->block_config_panel() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/81/8117c12a3570b0b07cc72b5d47f13a77.php:290) at TwigTemplate_8aa60ae6642b0c98b123cc352bb47e50->block_content() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/81/8117c12a3570b0b07cc72b5d47f13a77.php:249) at TwigTemplate_8aa60ae6642b0c98b123cc352bb47e50->block_content_column() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/0d/0d66ead081284767273f4af8a263c96a.php:704) at __TwigTemplate_26f396a4f11e0c0a48fd17637d13149b->block_main_container() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/0d/0d66ead081284767273f4af8a263c96a.php:350) at TwigTemplate_26f396a4f11e0c0a48fd17637d13149b->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/81/8117c12a3570b0b07cc72b5d47f13a77.php:86) at TwigTemplate_8aa60ae6642b0c98b123cc352bb47e50->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/1f/1f177e6df715b0262230f6cdd9d0904d.php:65) at __TwigTemplate_ccf98c9b7a731a4178b8aa5dc9a93322->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (vendor/twig/twig/src/Template.php:349) at Twig\Template->display() (vendor/twig/twig/src/Template.php:364) at Twig\Template->render() (vendor/twig/twig/src/TemplateWrapper.php:35) at Twig\TemplateWrapper->render() (vendor/twig/twig/src/Environment.php:306) at Twig\Environment->render() (vendor/ibexa/core/src/lib/MVC/Symfony/View/Renderer/TemplateRenderer.php:52) at Ibexa\Core\MVC\Symfony\View\Renderer\TemplateRenderer->render() (vendor/ibexa/core/src/bundle/Core/EventListener/ViewRendererListener.php:41) at Ibexa\Bundle\Core\EventListener\ViewRendererListener->renderView() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/ibexa/site-factory/src/lib/Event/EventDispatcher.php:28) at Ibexa\SiteFactory\Event\EventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:168) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:36) at require_once('/var/www/vendor/autoload_runtime.php') (public/index.php:5) `

And when we want to update a ContentType containing a tag field we also get similar errors: image

With ibexa/experience 4.5 it worked fine.

Thanks for your help.

emodric commented 2 months ago

Hi! I cannot reproduce this on 4.6.11 version of ibexa/oss.

Are you sure Tags Bundle is correctly installed?

phibo23 commented 2 months ago

Hi Edi, thanks for taking the time to look into the issue.

I found one error with our setup: upgrading ibexa messed up the order in our bundles.php. I think restoring the proper order fixed the issue but I'm not sure because I had different errors than @paulKopf before. We will get back to you next week because Paul is out of office until then.

paulKopf commented 1 month ago

Hi, thanks, the order in our bundles.php was the reason for the error. After changing the order and running bin/console cache:pool:clear cache.redis the error disappeared.

emodric commented 1 month ago

Good to hear that :+1: !