# Admin Broken after Update from 6.7.8.2 up to 6.7.9.0 and higher

**URL:** <https://forum.shopware.com/t/admin-broken-after-update-from-6-7-8-2-up-to-6-7-9-0-and-higher/109238>\
**Category:** Shopware 6 (English)\
**Created:** [4. Juli 2026 um 08:38 UTC](https://forum.shopware.com/t/admin-broken-after-update-from-6-7-8-2-up-to-6-7-9-0-and-higher/109238 "2026-07-04T08:38:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kas.Richmond](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@Kas.Richmond](https://forum.shopware.com/u/Kas.Richmond)\
**Post date:** [4. Juli 2026 um 08:38 UTC](https://forum.shopware.com/t/admin-broken-after-update-from-6-7-8-2-up-to-6-7-9-0-and-higher/109238/1 "2026-07-04T08:38:04Z")

</div>

Hello,

after I Update shopware higher than 6.7.8.2 I got errors at the admin backend:

```auto
	
errors	
0	
code	"0"
status	"500"
title	"Internal Server Error"
detail	'An exception has been thrown during the rendering of a template ("Shopware\\Core\\Framework\\Adapter\\Twig\\Extension\\TwigFeaturesWithInheritanceExtension::include(): Return value must be of type string, Twig\\Markup returned") in "@Administration/administration/index.html.twig" at line 11.'

```

This happes with the web updater and composer. All extensions (the shopware default one) are deactivated and the theme was selected to the default one.

Did someone has something similiar or know a solution?

---

<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:** [4. Juli 2026 um 15:07 UTC](https://forum.shopware.com/t/admin-broken-after-update-from-6-7-8-2-up-to-6-7-9-0-and-higher/109238/2 "2026-07-04T15:07:54Z")

</div>

Do you use Docker? I get the same error setting up a new shop.

---

<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:** [4. Juli 2026 um 15:48 UTC](https://forum.shopware.com/t/admin-broken-after-update-from-6-7-8-2-up-to-6-7-9-0-and-higher/109238/3 "2026-07-04T15:48:04Z")

</div>

> <https://github.com/shopware/shopware/issues/18028>
>
> \### Shopware Version
> 
> 6.7.11.1
> 
> \### Affected area / extension
> 
> Platform(Default)…
> 
> \### Actual behaviour
> 
> When twig/twig is updated to version 3.26.0 or later (currently reproduced with v3.28.0), the Administration fails to load with a 500 Internal Server Error:
> 
> An exception has been thrown during the rendering of a template ("Shopware\\Core\\Framework\\Adapter\\Twig\\Extension\\TwigFeaturesWithInheritanceExtension::include(): Return value must be of type string, Twig\\Markup returned") in "@Administration/administration/index.html.twig" at line 11.
> 
> This happens because recent Twig versions changed the include() function in CoreExtension to return a Twig\\Markup object instead of a plain string (see twigphp/Twig#4802 and the Twig 3.26.0 changelog). Shopware's own TwigFeaturesWithInheritanceExtension::include() method still declares a strict \`: string\` return type and internally calls CoreExtension::include(...) directly, so PHP throws a TypeError as soon as a Markup object is returned instead of a string.
> 
> This is not limited to a specific plugin — it reproduces with all plugins deactivated, since the error occurs while rendering Shopware's own core Administration bootstrap template.
> 
> \### Expected behaviour
> 
> The Administration should load correctly regardless of the Twig version installed (as long as it satisfies shopware/core's own composer constraint of ^3.21.1), since Twig versions 3.26.0+ contain important security fixes and should not be blocked or downgraded.
> 
> \### How to reproduce
> 
> 1. Have a Shopware 6.7.x installation with shopware/core requiring "twig/twig": "^3.21.1"
> 2. Have any dependency in the project (in our case cob/content-blocks -\> codeblick/ux-twig-component) with a loose twig/twig constraint (e.g. ^3.8) that allows Composer to resolve twig/twig to the newest available version
> 3. Run a composer update that allows twig/twig to update to 3.26.0 or later (we ended up on v3.28.0)
> 4. Open the Administration in the browser
> 5. Observe the 500 Internal Server Error described above
> 
> Workaround: manually casting the return value in TwigFeaturesWithInheritanceExtension::include() to (string) before returning fixes the issue, but this is reverted by any subsequent composer install/update since it patches a vendor file directly.

---

<div class="post-metadata">

**Author:** ![Kas.Richmond](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@Kas.Richmond](https://forum.shopware.com/u/Kas.Richmond)\
**Post date:** [4. Juli 2026 um 17:36 UTC](https://forum.shopware.com/t/admin-broken-after-update-from-6-7-8-2-up-to-6-7-9-0-and-higher/109238/4 "2026-07-04T17:36:14Z")

</div>

Thx. Downgrading twig fixed this.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [3. August 2026 um 17:36 UTC](https://forum.shopware.com/t/admin-broken-after-update-from-6-7-8-2-up-to-6-7-9-0-and-higher/109238/5 "2026-08-03T17:36:55Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
