# Artikel Staffelung Fehler

**URL:** <https://forum.shopware.com/t/artikel-staffelung-fehler/92751>\
**Category:** Shopware 5\
**Created:** [3. Februar 2022 um 14:50 UTC](https://forum.shopware.com/t/artikel-staffelung-fehler/92751 "2022-02-03T14:50:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaan](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Shaan](https://forum.shopware.com/u/Shaan)\
**Post date:** [3. Februar 2022 um 14:50 UTC](https://forum.shopware.com/t/artikel-staffelung-fehler/92751/1 "2022-02-03T14:50:01Z")

</div>

Moin!

Wir erhalten folgenden Fehler,

**Fatal error** : Uncaught TypeError: Argument 1 passed to Shopware\Components\Cart\Struct\CartItemStruct::setUpdatedPrice() must be of the type array, null given, called in /home/meibtllc/www.aaaaaaaa.de/shopware/engine/Shopware/Core/sBasket.php on line 3066 and defined in /home/meibtllc/www.aaaaaaaaa.de/shopware/engine/Shopware/Components/Cart/Struct/CartItemStruct.php:120 Stack trace: #0 /home/meibtllc/www.aaaaaaaaaaaa.de/shopware/engine/Shopware/Core/sBasket.php(3066): Shopware\Components\Cart\Struct\CartItemStruct-\>setUpdatedPrice() #1 /home/meibtllc/www.aaaaaaaa.de/shopware/engine/Shopware/Core/sBasket.php(1727): sBasket-\>getPricesForItemUpdates() #2 /home/meibtllc/www.aaaaaaaaaaaaa.de/shopware/engine/Shopware/Core/sBasket.php(1682): sBasket-\>updateCartItems() #3 /home/meibtllc/www.aaaaaaaaaaaaa.de/shopware/engine/Shopware/Core/sBasket.php(2059): sBasket-\>sUpdateArticle() #4 /home/meibtllc/www.aaaaaaaaaaaaaa.de/shopware/var/cache/production\_202201031510/proxi in **/home/meibtllc/www.aaaaaaaaaaaaaa.de/shopware/engine/Shopware/Components/Cart/Struct/CartItemStruct.php** on line **120**

**wenn bei einem Artikel z. B. der Lagerbestand 6 ist, und die Staffelung ebenfalls auf 6 gestellt ist.**

Mit einer Staffelung unter dem Lagerbestand gibt es keine Fehler.

Der Fehler wird ausgelöst, wenn man den Artikel in den Warenkorb legen möchte. SW 5.7.7

Kann das einer bestätigen?

LG Shaan

---

<div class="post-metadata">

**Author:** ![Jadrovino](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Jadrovino](https://forum.shopware.com/u/Jadrovino)\
**Post date:** [5. Februar 2022 um 11:33 UTC](https://forum.shopware.com/t/artikel-staffelung-fehler/92751/2 "2022-02-05T11:33:03Z")

</div>

Genau den Fehler habe ich auch bei Setartikeln.

Viele Grüße  
Gerd

---

<div class="post-metadata">

**Author:** ![d.garding](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/d.garding/32/10544_2.png) [@d.garding](https://forum.shopware.com/u/d.garding)\
**Post date:** [7. Februar 2022 um 07:12 UTC](https://forum.shopware.com/t/artikel-staffelung-fehler/92751/3 "2022-02-07T07:12:37Z")

</div>

Hallo,

in der sBasket wird ein event gefeuert. „Shopware\_Modules\_Basket\_getPriceForUpdateArticle\_FilterPrice“

schaut mal ob sich ein Plugin darauf subscribed und evt. null anstelle eines Arrays zurück gibt.

LG

Dennis

---

<div class="post-metadata">

**Author:** ![Shaan](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Shaan](https://forum.shopware.com/u/Shaan)\
**Post date:** [7. Februar 2022 um 10:30 UTC](https://forum.shopware.com/t/artikel-staffelung-fehler/92751/4 "2022-02-07T10:30:28Z")

</div>

Verstehe, danke für die Rückmeldung @d.garding

Spontan denke ich da an mein Pfandplugin, da habe ich nun auch in der core.php

```auto
    public static function getSubscribedEvents()
    {
        return [
            'sBasket::sAddArticle::after' => ['afterAddArticle', 0],
            
            'sBasket::sGetBasket::before' => ['beforeGetBasket', 0],
            
            'sBasket::sCheckMinimumCharge::replace' => ['replaceCheckMinimumCharge', 0],
            
            'Shopware_Modules_Basket_sGetBasket_AllowEmptyBasket' => ['sGetBasketAllowEmptyBasket', 0],

            'Shopware_Modules_Basket_getArticleForAddArticle_FilterArticle' => ['getArticleForAddArticleFilterArticle', 0],

            'Shopware_Modules_Basket_getPriceForUpdateArticle_FilterPrice' => ['getPriceForUpdateArticleFilterPrice', 0],

            'Shopware_Modules_Basket_GetAmountArticles_QueryBuilder' => ['BasketGetAmountArticlesQueryBuilder', 0]
        ];
    }

```

den event gefunden. Es ändert sich aber nichts durch das deaktivieren des Plugins.  
Das muss also ein Plugin sein, das den Preis manipuliert?

Kann den event auch anders finden?
