> For the complete documentation index, see [llms.txt](https://docs-sw5.zenit.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-sw5.zenit.design/themes/theme-kompilierung-fehler-nach-update.md).

# Theme Kompilierung Fehler nach Update

## Problembeschreibung <a href="#problembeschreibung" id="problembeschreibung"></a>

Manchmal werden **neue Variablen** für neue Konfigurationen durch ein Update hinzugefügt.

Neue Veriablen werden in Shopware leider erst beim Öffnen des Theme-Managers bekannt gemacht und an die Datenbank gegeben.

Eine solche Routine beim Update gibt es leider nicht. Daher sollte beim Update eine Meldung erschienen sein mit folgendem Inhalt:

> "Update erfolgreich. Zum Abschluss des Updates bitte unbedingt den Theme Manager öffnen und erst danach das Theme erneut kompilieren. Vielen Dank!"

## Fehlermeldung: <a href="#fehlermeldung" id="fehlermeldung"></a>

Während der Bearbeitung von Shop "XYZ" ist ein Fehler aufgetreten: variable @NameDerVariable is undefined in file /var/www/html/custom/plugins/zenitXYZ/Resources/Themes/Frontend/XYZ/frontend/\_public/src/less/\_modules/detail.less in detail.less on line 158, column 13 156| 157| // product actions 158| & when (@detail-notepad = button) { 159| @media screen and (min-width: @tabletViewportWidth) { 160| nav.product--actions { 161| position: relative

## Lösungsvorschlag <a href="#loesungsvorschlag" id="loesungsvorschlag"></a>

Öffnen den Theme-Manager und speichere die Theme Konfiguration erneut ab - danach sollte die Kompilierung des Themes wie gewohnt durchlaufen.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-sw5.zenit.design/themes/theme-kompilierung-fehler-nach-update.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
