Error 400 / Theme cannot be saved


When saving the theme configuration, the error message "Error 400" or "Error: Request failed with status code 400" is displayed and the theme has not been saved.

Clicking on the button "Show full error" opens a pop-up with the message "Unable to compile the theme "TcinnThemeWare...". Undefined variable $...".


The message "Undefined variable $..." refers to a theme variable that is used in a configuration field. This is basically possible, but is unfortunately subject to a restriction.

Variables must be initialised before they can be used in another configuration field. This is only the case if the variable has already been defined before the intended configuration field.

The problem affects all configuration fields, but mainly occurs in Shopware standard configuration fields and theme duplicates. (Problematic configuration fields are indicated with corresponding information in their help texts).


If you currently entered a variable in a configuration field, reload the theme configuration and change the corresponding configuration field back to an appropriate HEX or RGB value.

If you do not know which configuration field this is, just visit the ThemeWare® Config Finder and search there for the technical name from the error message (e.g. $twt-color-brand-primary-light) without the dollar sign "$".

Issue not solved?

If you could not solve the problem, simply start the ThemeWare® Debugging. You can open a support ticket in case you are not able to solve the problem yourself:

Last updated


© 2024 by ThemeWare® | Made with 💙 by TC-Innovations GmbH