# Version: 6.4.11.1 Varianten können nicht mehr generiert werden - 0 von X varianten berechnet - Dringend

**URL:** <https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480>\
**Category:** Administration\
**Created:** [19. Mai 2022 um 14:08 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480 "2022-05-19T14:08:34Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holger1](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@Holger1](https://forum.shopware.com/u/Holger1)\
**Post date:** [19. Mai 2022 um 14:08 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/1 "2022-05-19T14:08:34Z")

</div>

Unter Varianten generieren - Ausprägungsauswahl - Button Varianten generieren  
siehe Bild

 ![varianten](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/f/f/ffb1129e28422b6ed86080bb58c7e7e86859f25e.jpeg)

passiert beim anklicken des Butoons folgendes  
siehe Bild

 ![varianten-1](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/9/8/98b7e22c026dc5e4ce0af099bbbbc5633a26d5ae.jpeg)

Dieser Zustand bleibt unendlich so stehen.

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [19. Mai 2022 um 14:17 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/2 "2022-05-19T14:17:13Z")

</div>

Öffne Mal die Browser Entwicklerkonsole (meist mit Hilfe der F12) und Guck Mal, ob in der Console oder im Network Tab ein Fehler Auftritt.

Was liefert denn der Request, wenn du auf generieren klickst?

vg

---

<div class="post-metadata">

**Author:** ![Holger1](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@Holger1](https://forum.shopware.com/u/Holger1)\
**Post date:** [19. Mai 2022 um 14:37 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/3 "2022-05-19T14:37:16Z")

</div>

> [@abdullah](#):
>
> Entwicklerkonsole

da steht eine ganze Menge drinnen.  
ich kopiere es gleich mal  
Was meinst du mit " Was liefert denn der Request, wenn du auf generieren klickst? "

Content Security Policy: Ignorieren von „‚unsafe-inline‘“ innerhalb script-src: ‚strict-dynamic‘ angegeben

Content Security Policy: Ignorieren von „https:“ innerhalb script-src: ‚strict-dynamic‘ angegeben

Content Security Policy: Ignorieren von „http:“ innerhalb script-src: ‚strict-dynamic‘ angegeben

An error was captured in current module: TypeError: this.product.variantRestrictions.filter is not a function

filterEmptyValues index.js:157

mountedComponent index.js:91

mounted index.js:86

VueJS 12

index.js:29:16

Uncaught (in promise) TypeError: (intermediate value).map is not a function

value sw-products-variants-generator.js:269

value sw-products-variants-generator.js:244

value sw-products-variants-generator.js:75

value sw-products-variants-generator.js:41

6 sw-products-variants-generator.js:269:52

An error was captured in current module: TypeError: this.product.variantRestrictions.filter is not a function

filterEmptyValues index.js:157

mountedComponent index.js:91

mounted index.js:86

VueJS 12

index.js:29:16

An error was captured in current module: TypeError: this.product.variantRestrictions.filter is not a function

filterEmptyValues index.js:157

mountedComponent index.js:91

mounted index.js:86

VueJS 12

index.js:29:16

Uncaught (in promise) TypeError: (intermediate value).map is not a function

value sw-products-variants-generator.js:269

value sw-products-variants-generator.js:244

value sw-products-variants-generator.js:75

value sw-products-variants-generator.js:41

6 sw-products-variants-generator.js:269:52

Uncaught (in promise) Error: Request failed with status code 503

exports createError.js:16

exports settle.js:17

y xhr.js:54

createError.js:16:14

Uncaught (in promise) TypeError: (intermediate value).map is not a function

value sw-products-variants-generator.js:269

value sw-products-variants-generator.js:244

value sw-products-variants-generator.js:75

value sw-products-variants-generator.js:41

sw-products-variants-generator.js:269:52

Uncaught (in promise) TypeError: e.config is undefined

u http.factory.js:82

2 http.factory.js:82:35

TypeError: t.response is undefined

b590b6de-fdaa-4e00-a57f-fd0c0af86a84:1:43758

Uncaught (in promise) TypeError: (intermediate value).map is not a function

value sw-products-variants-generator.js:269

value sw-products-variants-generator.js:244

value sw-products-variants-generator.js:75

value sw-products-variants-generator.js:41

sw-products-variants-generator.js:269:52

An error was captured in current module: TypeError: this.product.variantRestrictions.filter is not a function

filterEmptyValues index.js:157

mountedComponent index.js:91

mounted index.js:86

VueJS 12

index.js:29:16

Uncaught (in promise) TypeError: (intermediate value).map is not a function

value sw-products-variants-generator.js:269

value sw-products-variants-generator.js:244

value sw-products-variants-generator.js:75

value sw-products-variants-generator.js:41

---

<div class="post-metadata">

**Author:** ![o.uppenkamp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/o.uppenkamp/32/17138_2.png) [@o.uppenkamp](https://forum.shopware.com/u/o.uppenkamp)\
**Post date:** [20. Mai 2022 um 08:44 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/4 "2022-05-20T08:44:29Z")

</div>

Hallo,

ich habe ein ähnliches Problem, allerdings mit der Shopware-Version 6.4.9.0.  
Ich bekomme bei Klick auf „Ausprägungsausschluss“ die Fehlermeldung:

```auto
An error was captured in current module: TypeError: this.product.variantRestrictions.filter is not a function
    at a.filterEmptyValues (app.js?16474120736423139:1:5137951)
    at a.mountedComponent (app.js?16474120736423139:1:5136981)
    at a.mounted (app.js?16474120736423139:1:5136908)
    at Ge (vendors-node.js?16474120731570027:2:691220)
    at ln (vendors-node.js?16474120731570027:2:705225)
    at Object.insert (vendors-node.js?16474120731570027:2:700300)
    at C (vendors-node.js?16474120731570027:2:740343)
    at a. __patch__ (vendors-node.js?16474120731570027:2:741701)
    at a.e._update (vendors-node.js?16474120731570027:2:714303)
    at a.i (vendors-node.js?16474120731570027:2:748365)

```

Bei Klick auf „Varianten generieren“ bekomme ich dann die Fehlermeldung:

```auto
app.js?16474120736423139:1 Uncaught (in promise) TypeError: (this.product.variantRestrictions || []).map is not a function
    at n.value (app.js?16474120736423139:1:5110044)
    at app.js?16474120736423139:1:5109743
    at new Promise (<anonymous>)
    at n.value (app.js?16474120736423139:1:5108271)
    at app.js?16474120736423139:1:5107730

```

Ich habe auch bereits einmal in die Datenbank geschaut und ich konnte feststellen, in dem besagten Feld wird dann ein leeres Array ( „“ - ist schließlich ein JSON) eingetragen. Bei anderen Artikeln ist da der Standardwert „NULL“. Hat das möglicherweise damit zu tun?

---

<div class="post-metadata">

**Author:** ![sebian](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@sebian](https://forum.shopware.com/u/sebian)\
**Post date:** [29. Mai 2022 um 10:23 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/5 "2022-05-29T10:23:27Z")

</div>

Hallo, auch ich kann keine Varianten mehr erzeugen.  
Betrifft auch die 6.4.11.1  
Gibt es schon Neuigkeiten dazu?

> Uncaught (in promise) TypeError: (this.product.variantRestrictions || ).map is not a function  
> at n.value (sw-products-variants-generator.js:269:53)  
> at sw-products-variants-generator.js:244:46  
> at new Promise ()  
> at n.value (sw-products-variants-generator.js:75:16)  
> at sw-products-variants-generator.js:41:22

> index.js:29 An error was captured in current module: TypeError: this.product.variantRestrictions.filter is not a function  
> at a.filterEmptyValues (index.js:157:81)  
> at a.mountedComponent (index.js:91:18)  
> at a.mounted (index.js:86:14)  
> at Ge (vue.esm.js:1872:57)  
> at ln (vue.esm.js:4244:7)  
> at Object.insert (vue.esm.js:3167:7)  
> at C (vue.esm.js:6401:28)  
> at a. **patch** (vue.esm.js:6620:5)  
> at e.\_update (vue.esm.js:3972:19)  
> at a.i (vue.esm.js:4090:10)  
> errorCaptured @ index.js:29

> sw-products-variants-generator.js:269 Uncaught (in promise) TypeError: (this.product.variantRestrictions || ).map is not a function at n.value (sw-products-variants-generator.js:269:53) at sw-products-variants-generator.js:244:46 at new Promise () at n.value (sw-products-variants-generator.js:75:16) at sw-products-variants-generator.js:41:22

> ||value|@|sw-products-variants-generator.js:269|  
> | — | — | — | — |  
> ||(anonym)|@|sw-products-variants-generator.js:244|  
> ||value|@|sw-products-variants-generator.js:75|  
> ||(anonym)|@|sw-products-variants-generator.js:41|  
> ||Promise.then (async)|||  
> ||(anonym)|@|sw-products-variants-generator.js:42|  
> ||Promise.then (async)|||  
> ||(anonym)|@|sw-products-variants-generator.js:39|  
> ||value|@|sw-products-variants-generator.js:23|  
> ||generateVariants|@|index.js:104|  
> ||click|@|VM402:3|  
> ||Ge|@|vue.esm.js:1872|  
> ||n|@|vue.esm.js:2197|  
> ||o.\_wrapper|@|vue.esm.js:7609|

Ich hoffe es kann damit jemand etwas anfangen.

Gruß Sebastian

---

<div class="post-metadata">

**Author:** ![Holger1](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@Holger1](https://forum.shopware.com/u/Holger1)\
**Post date:** [1. Juni 2022 um 16:03 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/6 "2022-06-01T16:03:45Z")

</div>

Kann sich das Problem bitte jemand aus dem Moderatoren-Team ansehen?  
Vieleicht hat jemand eine Idee

---

<div class="post-metadata">

**Author:** ![Holger1](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@Holger1](https://forum.shopware.com/u/Holger1)\
**Post date:** [3. Juli 2022 um 07:01 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/7 "2022-07-03T07:01:39Z")

</div>

Nachtrag:  
Es handelt sich bei uns um sehr viele Kombinationen pro Artikel.  
Im Moment sind es 990.  
Der Auszug aus der error.log zeigt immer den selben Fehler.  
Er besteht aus zwei Zeilen. Ich nehme an die stehen für die jeweils nicht generierten Artikelvariante.  
Anbei ein Bild.  
Ich hoffe es findet sich eine Lösung.

 ![grafik](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/9/8/980d28eb7482334870bb840af0723775610e4e93.png)

---

<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:** [3. Juli 2022 um 11:56 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/8 "2022-07-03T11:56:56Z")

</div>

> [@o.uppenkamp](#):
>
> `variantRestrictions`

Scheint, dass die Ausschlusskriterien kein Array liefern. Mal die Option geöffnet, modifiziert und wieder gespeichert?

---

<div class="post-metadata">

**Author:** ![o.uppenkamp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/o.uppenkamp/32/17138_2.png) [@o.uppenkamp](https://forum.shopware.com/u/o.uppenkamp)\
**Post date:** [4. Juli 2022 um 08:29 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/9 "2022-07-04T08:29:34Z")

</div>

Hi @Max_Shop,

die variantRestrictions liefern kein Array. Das Problem ist dabei scheinbar aber der Abruf der Restrictions über die API. Indessen habe ich die PHP Version von 8.0 auf die Version 7.4 herabgesetzt.  
Ich habe da nun keine Probleme mehr 🙂

---

<div class="post-metadata">

**Author:** ![thomas5](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomas5/32/18845_2.png) [@thomas5](https://forum.shopware.com/u/thomas5)\
**Post date:** [10. November 2022 um 05:11 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/10 "2022-11-10T05:11:48Z")

</div>

Moin!  
Ich habe jetzt das gleiche Problem mit der Version 6.4.17.0.  
Das heruntersetzen der PHP-Version kann ja nun nicht wirklich eine Lösung sein.  
Kann sich das mal jemand von Shopware anschauen?

---

<div class="post-metadata">

**Author:** ![thomas5](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomas5/32/18845_2.png) [@thomas5](https://forum.shopware.com/u/thomas5)\
**Post date:** [10. November 2022 um 05:35 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/11 "2022-11-10T05:35:22Z")

</div>

Der Fehler liegt in der src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-restrictions/index.js in Zeile 154.  
Die Prüfung

```auto
if (!this.product.variantRestrictions) {
    return false;
}

```

ergibt hier gar kein Sinn, da das immer eine Proxy-Klasse, auch wenn sie keine Objekte in sich trägt.

---

<div class="post-metadata">

**Author:** ![thomas5](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomas5/32/18845_2.png) [@thomas5](https://forum.shopware.com/u/thomas5)\
**Post date:** [10. November 2022 um 05:55 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/12 "2022-11-10T05:55:17Z")

</div>

Ich habe die Lösung gefunden: Aus irgendeinem Grund stand bei dem Artikel in der Datenbank in der Tabelle products in der Spalte variant\_restrictions ein leeres Array. Dieses Feld muss mit null ersetzt werden und dann lassen sich neue Ausnahmen hinzufügen und die Varianten sich wieder generieren.

---

<div class="post-metadata">

**Author:** ![Christian.Saeum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/christian.saeum/32/15763_2.png) [@Christian.Saeum](https://forum.shopware.com/u/Christian.Saeum)\
**Post date:** [25. Januar 2023 um 21:28 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/13 "2023-01-25T21:28:42Z")

</div>

Die stehen bei mir auch drin. Nun habe ich beim Vater das Feld mit NULL gefüllt.

Aberdennoch kann ich keine weiteren generieren!

---

<div class="post-metadata">

**Author:** ![Christian.Saeum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/christian.saeum/32/15763_2.png) [@Christian.Saeum](https://forum.shopware.com/u/Christian.Saeum)\
**Post date:** [26. Januar 2023 um 11:52 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/14 "2023-01-26T11:52:54Z")

</div>

Habe dazu auch dies gefunden und auch schon gevotet und meinen Fehler geschrieben.

> **[Shopware Issuetracker](https://issues.shopware.com/issues/NEXT-17853)**
>
> Shopware Issuetracker

Kann wer mehr dazu sagen?

---

<div class="post-metadata">

**Author:** ![Christian.Saeum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/christian.saeum/32/15763_2.png) [@Christian.Saeum](https://forum.shopware.com/u/Christian.Saeum)\
**Post date:** [29. Januar 2023 um 20:16 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/15 "2023-01-29T20:16:17Z")

</div>

Also konnte es auch lösen.

Es muss beim Vater und auch bei den Varianten jeweils unter „variant\_restrictions“ ein NULL rein.

Gerade noch mitbekommen. Ich konnte zwar von vorher schon ausgewählten Eigenschaften Werte nun als Varianten hinzufügen.

Aber leider kann ich keine neue Eigenschaft hinzufügen um dann aus den beiden Eigenschaften Varianten zu generieren!

Weiß jemand wie man da die DB noch modifizieren muss oder den Fehler findet?

---

<div class="post-metadata">

**Author:** ![devnullroot](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@devnullroot](https://forum.shopware.com/u/devnullroot)\
**Post date:** [22. November 2023 um 12:38 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/16 "2023-11-22T12:38:40Z")

</div>

Das Problem besteht nun seit über zwei Jahren! Es kann doch nicht sein, dass die Behebung solch eines essentiellen Problems nur von der Anzahl der Votes im Issue-Tracker abhängt.

Es gibt auch bereits seit 2021 einen Bug-Eintrag auf github:

> <https://github.com/shopware/shopware/issues/2145>
>
> \### PHP Version
> 
> 7.4
> 
> \### Shopware Version
> 
> 6.4.5.1
> 
> \### Expected behaviour
> 
> Pro…duct variations are created from selected attributes.
> 
> \### Actual behaviour
> 
> A JavaScript error occurs.
> 
> 
> !\[variations-bug\](https://user-images.githubusercontent.com/17496592/138075333-cc3d7680-6333-4d72-898b-380cadd9fdd6.gif)
> 
> 
> 
> \### How to reproduce
> 
> 1. select some product properties to create the variation
> 2. click on "generate variations"
> 3. wait forever

Wo liegen denn bitte bei Shopware die Prioritäten? Schön, dass sich um diverse Dinge wie die Begrüßung im Admin-Bereich gekümmert, aber das eigentliche Produkt nicht gefixt wird 🤦

Für alle, die es eventuell im Issue-Tracker übersehen haben: Man kann per

`UPDATE product SET variant_restrictions= NULL WHERE variant_restrictions = '[]'`

die Datenbank bereinigen (nicht meine Erkenntnis, Kudos und Dank an André Buchmann), aber das kann es ja nicht sein! Ausführung des Queries natürlich auf eigene Gefahr 😉

Grummelnder Gruß,  
devnullroot

---

<div class="post-metadata">

**Author:** ![great2gether](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/great2gether/32/12887_2.png) [@great2gether](https://forum.shopware.com/u/great2gether)\
**Post date:** [8. März 2024 um 22:58 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/17 "2024-03-08T22:58:48Z")

</div>

Bei mir lag es an einem Browser ad blocker

---

<div class="post-metadata">

**Author:** ![shinroh](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shinroh](https://forum.shopware.com/u/shinroh)\
**Post date:** [30. Oktober 2024 um 17:00 UTC](https://forum.shopware.com/t/version-6-4-11-1-varianten-koennen-nicht-mehr-generiert-werden-0-von-x-varianten-berechnet-dringend/94480/18 "2024-10-30T17:00:57Z")

</div>

> [@devnullroot](#):
>
> UPDATE product SET variant\_restrictions=NULL WHERE variant\_restrictions = ‚‘

Das behebt das Problem, auch in späteren 6.5 Versionen.  
Durch diesen Bug kann es auch zu fehlerhaften Variantanzeigen im Frontend kommen
