# Shopware 6.6.2.0: HTTP 500 im Admin nach Update auf Sicherheits-Plugin 3.0.21 (twig\_get\_attribute)

**URL:** <https://forum.shopware.com/t/shopware-6-6-2-0-http-500-im-admin-nach-update-auf-sicherheits-plugin-3-0-21-twig-get-attribute/109944>\
**Category:** Shopware 6 (German)\
**Created:** [19. November 2026 um 09:36 UTC](https://forum.shopware.com/t/shopware-6-6-2-0-http-500-im-admin-nach-update-auf-sicherheits-plugin-3-0-21-twig-get-attribute/109944 "2026-11-19T09:36:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TB18](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@TB18](https://forum.shopware.com/u/TB18)\
**Post date:** [19. November 2026 um 09:36 UTC](https://forum.shopware.com/t/shopware-6-6-2-0-http-500-im-admin-nach-update-auf-sicherheits-plugin-3-0-21-twig-get-attribute/109944/1 "2026-11-19T09:36:13Z")

</div>

Hallo zusammen,

unsere Agentur hat das Shopware-Sicherheits-Plugin **3.0.21** auf unserer Testumgebung mit **Shopware 6.6.2.0** aktiviert. Seitdem liefert der Aufruf von `/admin` einen HTTP-500-Fehler. Die Fehlermeldung lautet: `Call to undefined function twig_get_attribute()`.

Im [bereits gelösten Thema zur 6.5er-Reihe](https://forum.shopware.com/t/http-error-500-nach-update-fuer-das-shopware-6-security-plugin/109893?utm_source=chatgpt.com) wurde eine ähnliche Fehlermeldung besprochen. Hat jemand diesen Fehler auch unter **6.6.2.0** mit Plugin **3.0.21** beobachtet? Gibt es von Shopware bereits eine Korrektur oder eine empfohlene Zwischenlösung, bei der die Sicherheitsprüfungen aktiv bleiben?

Vielen Dank!

---

<div class="post-metadata">

**Author:** ![raymond-de](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@raymond-de](https://forum.shopware.com/u/raymond-de)\
**Post date:** [19. November 2026 um 10:31 UTC](https://forum.shopware.com/t/shopware-6-6-2-0-http-500-im-admin-nach-update-auf-sicherheits-plugin-3-0-21-twig-get-attribute/109944/2 "2026-11-19T10:31:44Z")

</div>

Dieser Shopware Version ist sehr alt und bietet nur noch Sicherheitsupdates.

Daher entweder auf Shopware 6.6.10 upgraden (ist eine LTS Version als Long Term Support) oder 6.7.15 (auch LTS Version) oder gleich auf aktuellsten Shopware 6.7:

> **[Shopware Release Policy | Shopware Documentation](https://developer.shopware.com/release-notes/)**
>
> Documentation for Shopware developers

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [19. November 2026 um 11:07 UTC](https://forum.shopware.com/t/shopware-6-6-2-0-http-500-im-admin-nach-update-auf-sicherheits-plugin-3-0-21-twig-get-attribute/109944/3 "2026-11-19T11:07:54Z")

</div>

Für Shopware 6.5 gab es schon eine Aktualisierung des Sicherheitsplugin. Für die 6.6 war der Fehler vermutlich bisher nicht bekannt. Eventuell wird das Sicherheitsplugin auch für Shopware 6.6 noch einmal aktualisiert.

> <https://github.com/shopware/shopware/issues/22897>
>
> \### Shopware Version
> 
> 6.5.8.9
> 
> \### Affected area / extension
> 
> Platform(Default)
> …
> \### Actual behaviour
> 
> After installing and activating \`SwagPlatformSecurity\` 2.0.25 on Shopware 6.5.8.9 with Twig 3.20.0, I encountered an HTTP 500 error in the storefront.
> 
> The error occurs when rendering a template that accesses attributes:
> 
> \`\`\`text
> StorefrontException: Can not render @BlankeSystems/storefront/page/content/index.html.twig view: An exception has been thrown during the rendering of a template ("Call to undefined function twig\_get\_attribute()").
> \`\`\`
> 
> The affected template belongs to a custom theme. With Security Plugin 2.0.24, the error does not occur in the same setup.
> 
> \*\*Environment:\*\*
> 
> \- Shopware: 6.5.8.9
> \- Twig: 3.20.0
> \- \`shopware/conflicts\`: 0.1.24
> \- \`SwagPlatformSecurity\`: 2.0.25
> \- PHP: 8.2
> \- Security fix \`GHSA-59j5-8mv2-2fc5\`: active
> 
> \*\*Analysis:\*\*
> 
> In Security Plugin 2.0.25, \`GuardCompiler\` replaces compiled calls to \`CoreExtension::getAttribute()\` with calls to \`TemplateContextGuard::getAttribute()\`.
> 
> On Shopware versions without \`SwTwigFunction\`, the guard delegates to \`sw\_get\_attribute()\`. In Shopware 6.5.8.9, this function delegates non-\`Struct\` values, such as arrays, to the global \`twig\_get\_attribute()\` function. With Twig 3.9 and later, that function is no longer defined, resulting in the error.
> 
> Before Security Plugin 2.0.25, Twig 3.9 and later compiled attribute access directly to \`CoreExtension::getAttribute()\`. As a result, the replacement of \`twig\_get\_attribute()\` in \`TwigEnvironment::compile()\` did not apply, and this code path did not call \`sw\_get\_attribute()\`.
> 
> I investigated Shopware 6.5.8.9. Based on the source code, versions 6.5.8.10 through 6.5.8.16 may also be affected, but I have not reproduced the issue on those versions.
> 
> \*\*Temporary workaround:\*\*
> 
> A global \`twig\_get\_attribute()\` function can delegate to \`\\Twig\\Extension\\CoreExtension::getAttribute()\`. With this workaround, the security fix remains active and \`TemplateContextGuard::assertCallAllowed()\` continues to run before attribute access.
> 
> \### Expected behaviour
> 
> The storefront should render successfully with Shopware 6.5.8.9, Twig 3.20.0 and Security Plugin 2.0.25 while the \`GHSA-59j5-8mv2-2fc5\` fix remains active.
> 
> Attribute access should not call an undefined \`twig\_get\_attribute()\` function. The security checks introduced by the fix should remain effective.
> 
> \### How to reproduce
> 
> 1. Set up Shopware 6.5.8.9 with PHP 8.2, \`twig/twig\` 3.20.0 and \`shopware/conflicts\` 0.1.24.
> 2. Install and activate \`SwagPlatformSecurity\` 2.0.25.
> 3. Ensure that the fix \`GHSA-59j5-8mv2-2fc5\` is active and that no custom \`twig\_get\_attribute()\` workaround is present.
> 4. Clear the cache:
> 
> \`\`\`bash
> bin/console cache:clear
> \`\`\`
> 
> 5. Open a storefront page whose Twig template accesses an attribute, for example an array value.
> 
> \*\*Actual result:\*\* The page returns HTTP 500 with \`Call to undefined function twig\_get\_attribute()\`.
> 
> \*\*Comparison:\*\* The error does not occur with Security Plugin 2.0.24 in the same environment.

---

<div class="post-metadata">

**Author:** ![JonasElfering](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@JonasElfering](https://forum.shopware.com/u/JonasElfering)\
**Post date:** [19. November 2026 um 14:04 UTC](https://forum.shopware.com/t/shopware-6-6-2-0-http-500-im-admin-nach-update-auf-sicherheits-plugin-3-0-21-twig-get-attribute/109944/4 "2026-11-19T14:04:41Z")

</div>

Ja es scheint das gleiche Grundproblem zu sein wie mit der 6.5er Plugin version.

Wir arbeiten schon an einem Fix für das Plugin in der 6.6er Linie.

Eine Ursache warum das Problem in unseren Tests nicht aufgefallen ist, ist das shopware/conflicts package.

Es gab eine Änderung wie wir das Package ausliefern, wodurch Änderungen am composer setup nötig sind, wie hier beschrieben: [Twig 3.28 compatibility fix for Shopware | Shopware](https://www.shopware.com/en/news/twig-incompatability/)

Wenn diese Änderung nicht durchgeführt wurde, kann es dazu führen dass falsche Versionen von Abhängigkeiten installiert werden, die zu den beschriebenen Problemen führen.

Als workaround ohne auf ein weiteres plugin update zu warten, ist die composer änderung durchzuführen, konkret sollte das dazu führen das eine ältere shopware/conflicts version installiert wird, die wiederrum eine ältere twig version installiert womit die kompatibilitätsprobleme behoben werden.

---

<div class="post-metadata">

**Author:** ![TB18](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@TB18](https://forum.shopware.com/u/TB18)\
**Post date:** [19. November 2026 um 15:10 UTC](https://forum.shopware.com/t/shopware-6-6-2-0-http-500-im-admin-nach-update-auf-sicherheits-plugin-3-0-21-twig-get-attribute/109944/5 "2026-11-19T15:10:04Z")

</div>

Alles klar, vielen Dank für die schnelle Info!

---

<div class="post-metadata">

**Author:** ![JonasElfering](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@JonasElfering](https://forum.shopware.com/u/JonasElfering)\
**Post date:** [20. November 2026 um 09:47 UTC](https://forum.shopware.com/t/shopware-6-6-2-0-http-500-im-admin-nach-update-auf-sicherheits-plugin-3-0-21-twig-get-attribute/109944/6 "2026-11-20T09:47:57Z")

</div>

Wir haben gerade SwagPlatformSecurity 3.0.22 released, womit das Problem behoben wird.

**Edit:** Es ist ein bugfix release, keine neuen security fixes, also wenn 3.0.21 bei euch ohne das Problem läuft, braucht ihr nicht zwangsläufig updaten.

---

<div class="post-metadata">

**Author:** ![TB18](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@TB18](https://forum.shopware.com/u/TB18)\
**Post date:** [20. November 2026 um 10:01 UTC](https://forum.shopware.com/t/shopware-6-6-2-0-http-500-im-admin-nach-update-auf-sicherheits-plugin-3-0-21-twig-get-attribute/109944/7 "2026-11-20T10:01:59Z")

</div>

Perfekt, vielen Dank!
