# Invalid configuration

## Description

When saving the theme, you will receive the error message `Invalid configuration – The configuration is faulty. The theme cannot be saved`.

<figure><img src="https://1979975522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F178YilsPBIFHBAxTvcMo%2Fuploads%2Fi5ftkD7iAVErcZM4aPXr%2Fimage.png?alt=media&#x26;token=9fddbab8-898f-4b50-90a0-b4549355eb91" alt=""><figcaption></figcaption></figure>

## Cause

The message suggests that an error has occurred during the compilation of the storefront (Shopware Core + theme + customisations + extensions).

This error usually occurs when saving the theme, as this triggers the compilation process.

We are currently aware of two source texts:

1. Usually, the issue is simply down to a configuration field that has been filled in incorrectly, for example, containing the wrong value.
2. However, as described above, it can also occur due to an error in a customisation or third-party extension.

However, as described above, it can also occur due to an error in a customisation or third-party extension.

{% hint style="info" %}
**Note**: In the cases identified so far, the error was usually caused by an incorrectly configured colour scheme. However, there have also been instances where the problem was caused by a fault in a third-party extension.
{% endhint %}

{% hint style="success" %}
**Tip**: Use Shopware's colour picker to obtain a valid colour value.
{% endhint %}

> **Why hasn't this error been noticed before?**
>
> You may not have noticed this error in Shopware 6.6. However, with Shopware 6.7, the validation of the theme configuration has been significantly improved so that even minor typos are now reliably detected.

## Solution

There are two ways to resolve this error:

1. You have entered an incorrect value:
   * As the configuration could not be saved, the incorrect value was not applied. Reload the configuration and you can continue as normal.
2. The value was already incorrect before the update from Shopware 6.6 to 6.7.
   * Try the theme configuration validation to get more info. For example:
     * `SCSS Value "#eeeee" is not valid for type "color"`
       * correct would be `#eeeeee` (6x `e`, not 5x)
     * `SCSS Value "#9fa5ab;" is not valid for type "color"`
       * correct would be `#9fa5ab` (without a semicolon at the end)
     * `SCSS Value "none" is not valid for type "color"`
       * correct would be `rgba(0, 0, 0, 0)` (transparent colour)
     * `SCSS Value 'color' cannot be 'none'`
       * correct would be `rgba(0, 0, 0, 0)` (transparent colour)
   * If, for example, the validation gives you a colour value as the cause of the error, search your configuration for the incorrect value and correct it.
3. Disable ALL customisations and extensions, then check again to see if you can save. If the error no longer occurs, it is caused by a customisation or extension.
   * Tip: With [ThemeWare® Debugging](https://debugging.themeware.design/en), you can easily narrow down errors in extensions – step by step.

You can find more information about validation in the following article:

{% content-ref url="../../tutorials/debugging/validate-the-theme-configuration" %}
[validate-the-theme-configuration](https://knowledge.themeware.design/knowledge-base/tutorials/debugging/validate-the-theme-configuration)
{% endcontent-ref %}

#### 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:

{% embed url="<https://debugging.themeware.design/en>" %}
