# Zubehörartikel inaktiv setzt Hauptartikel auf 503

**URL:** <https://forum.shopware.com/t/zubehorartikel-inaktiv-setzt-hauptartikel-auf-503/44711>\
**Category:** Allgemein\
**Created:** [22. März 2017 um 09:24 UTC](https://forum.shopware.com/t/zubehorartikel-inaktiv-setzt-hauptartikel-auf-503/44711 "2017-03-22T09:24:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![haustechnik](https://avatars.discourse-cdn.com/v4/letter/h/35a633/32.png) [@haustechnik](https://forum.shopware.com/u/haustechnik)\
**Post date:** [22. März 2017 um 09:24 UTC](https://forum.shopware.com/t/zubehorartikel-inaktiv-setzt-hauptartikel-auf-503/44711/1 "2017-03-22T09:24:45Z")

</div>

Hallo,

wenn ein Artikel einen zugewiesenen Artikel als Zubehör besitzt und dieser Zubehörartikel mal deaktiviert wird, erscheint im Hauptartikel ein 503-Fehler:

```
Fatal error: Uncaught Error: Call to a member function getNumber() on null in /engine/Shopware/Bundle/StoreFrontBundle/Service/Core/RelatedProductsService.php:113 Stack trace: #0 /sw/engine/Shopware/Bundle/StoreFrontBundle/Service/Core/RelatedProductsService.php(96): Shopware\Bundle\StoreFrontBundle\Service\Core\RelatedProductsService->getProductsByNumbers(Array, Array) #1 /sw/engine/Shopware/Bundle/StoreFrontBundle/Service/Core/ProductService.php(160): Shopware\Bundle\StoreFrontBundle\Service\Core\RelatedProductsService->getList(Array, Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #2 /sw/engine/Shopware/Bundle/StoreFrontBundle/Service/Core/ProductService.php(147): Shopware\Bundle\StoreFrontBundle\Service\Core\ProductService->createFromListProducts(Array, Object(Shopware\Bundle\StoreFrontBundle\Struct\ShopContext)) #3 /sw/engine/Shopware/Bundle/StoreFrontBundle/Service/Core/ProductService.php(136): Shopwar in /sw/engine/Shopware/Bundle/StoreFrontBundle/Service/Core/RelatedProductsService.php on line 113 503 Service Unavailable

```

Bekommt man hier ggf. eine bessere Lösung hin?  
Oder tappe ich auf falscher Fährte und es liegt an etwas anderem?
