# Possible Bug: Undefined index label by Theme refresh

**URL:** <https://forum.shopware.com/t/possible-bug-undefined-index-label-by-theme-refresh/61472>\
**Category:** Themes & Design (EN)\
**Created:** [2. September 2019 um 12:37 UTC](https://forum.shopware.com/t/possible-bug-undefined-index-label-by-theme-refresh/61472 "2019-09-02T12:37:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev\_ht](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dev\_ht](https://forum.shopware.com/u/dev_ht)\
**Post date:** [2. September 2019 um 12:37 UTC](https://forum.shopware.com/t/possible-bug-undefined-index-label-by-theme-refresh/61472/1 "2019-09-02T12:37:35Z")

</div>

Hello,

After upgrading to Shopware 6 EA 1.1, I get the following error when refreshing a theme:

```
$ bin/console theme:refresh
In ThemeLifecycleService.php line 253:
Notice: Undefined index: label

```

The theme.json file has the following problematic content:

```
...
  "config": {
    "fields": {
      "sw-color-brand-primary": {
        "value": "#ecac11"
      },
...

```

If I add the `label` and the `type` entries, the error goes away.

Is it now actually required to explicitly add the&nbsp;`label` and `type` entries (although I don’t wanna change their values), or is this a possible bug?

&nbsp;

---

<div class="post-metadata">

**Author:** ![maurits](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@maurits](https://forum.shopware.com/u/maurits)\
**Post date:** [17. Januar 2020 um 11:17 UTC](https://forum.shopware.com/t/possible-bug-undefined-index-label-by-theme-refresh/61472/2 "2020-01-17T11:17:19Z")

</div>

I just ran into the same problem, and the fix is to add label and type to the theme.json, but I agree this is a bug and should be solved
