# Kategorien und Bilder bei Varianten werden gelöscht

**URL:** <https://forum.shopware.com/t/kategorien-und-bilder-bei-varianten-werden-geloscht/51913>\
**Category:** Allgemein\
**Created:** [21. März 2018 um 08:20 UTC](https://forum.shopware.com/t/kategorien-und-bilder-bei-varianten-werden-geloscht/51913 "2018-03-21T08:20:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LennartAlbrecht](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@LennartAlbrecht](https://forum.shopware.com/u/LennartAlbrecht)\
**Post date:** [21. März 2018 um 08:20 UTC](https://forum.shopware.com/t/kategorien-und-bilder-bei-varianten-werden-geloscht/51913/1 "2018-03-21T08:20:37Z")

</div>

Hallo Forum,

wir haben seit knapp 2 Wochen das Problem, dass neue Bilder bei Artikeln mit Varianten und neu angelegte Kategorien gelöscht werden nach knapp 15min gelöscht werden.Der&nbsp;Shop läuft aktuell auf **5.2.24**  
Haben daraufhin einmal die Schnittstelle komplett deaktiviert, die Cronjobs komplett deaktiviert. Kein Erfolg. Sämtliche Plugins der letzten Wochen deaktiviert, auch kein Erfolg.

Für die Kategorien war mein erster Ansatz eventuell zu viele Kategorien, aber dann würde der das ja schon vorher anzeigen und nicht erst die Kategorien anlegen und daraufhin wieder löschen.

Aktuell sind wir ratlos und der einzige Ansatz für die Bilder zumindest ist dieser hier Fehler:

core.ERROR:Shopware\Components\Api\Exception\CustomValidationException:Mediabyid385896notfoundin/var/www/clients/client1/web2/web/engine/Shopware/Components/Api/Resource/Variant.php:607Stacktrace:#0/var/www/clients/client1/web2/web/engine/Shopware/Components/Api/Resource/Variant.php(535):Shopware\Components\Api\Resource\Variant-\>prepareImageAssociation(Array,Object(Shopware\Models\Article\Article),Object(Shopware\Proxies\_\_CG\_\_\Shopware\Models\Article\Detail))#1/var/www/clients/client1/web2/web/engine/Shopware/Components/Api/Resource/Variant.php(362):Shopware\Components\Api\Resource\Variant-\>prepareData(Array,Object(Shopware\Models\Article\Article),Object(Shopware\Proxies\_\_CG\_\_\Shopware\Models\Article\Detail))#2/var/www/clients/client1/web2/web/engine/Shopware/Components/Api/Resource/Article.php(1025):Shopware\Components\Api\Resource\Variant-\>internalUpdate(310306,Array,Object(Shopware\Models\Article\Article))#3/var/www/clients/client1/web2/web/engine/Shopware/Components/Api/Resource/Article.php(942):Shopware\Components\Api\Resource\Article-\>prepareVariants(Array,Object(Shopware\Models\Article\Article))#4/var/www/clients/client1/web2/web/engine/Shopware/Components/Api/Resource/Article.php(395):Shopware\Components\Api\Resource\Article-\>prepareAssociatedData(Array,Object(Shopware\Models\Article\Article))#5/var/www/clients/client1/web2/web/engine/Shopware/Controllers/Api/Articles.php(116):Shopware\Components\Api\Resource\Article-\>update(‚98093‘,Array)#6/var/www/clients/client1/web2/web/engine/Library/Enlight/Controller/Action.php(159):Shopware\_Controllers\_Api\_Articles-\>putAction()#7/var/www/clients/client1/web2/web/engine/Library/Enlight/Controller/Dispatcher/Default.php(523):Enlight\_Controller\_Action-\>dispatch(‚putAction‘)#8/var/www/clients/client1/web2/web/engine/Library/Enlight/Controller/Front.php(223):Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp),Object(Enlight\_Controller\_Response\_ResponseHttp))#9/var/www/clients/client1/web2/web/engine/Shopware/Kernel.php(182):Enlight\_Controller\_Front-\>dispatch()#10/var/www/clients/client1/web2/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(491):Shopware\Kernel-\>handle(Object(Enlight\_Controller\_Request\_RequestHttp),1true)#11/var/www/clients/client1/web2/web/engine/Shopware/Components/HttpCache/AppCache.php(266):Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request),true,NULL)#12/var/www/clients/client1/web2/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(258):Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request),true)#13/var/www/clients/client1/web2/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(275):Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request),true)#14/var/www/clients/client1/web2/web/engine/Shopware/Components/HttpCache/AppCache.php(141):Symfony\Component\HttpKernel\HttpCache\HttpCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request),true)#15/var/www/clients/client1/web2/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(206):Shopware\Components\HttpCache\AppCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request),true)#16/var/www/clients/client1/web2/web/engine/Shopware/Components/HttpCache/AppCache.php(114):Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request),1true)#17/var/www/clients/client1/web2/web/shopware.php(117):Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request))#18{main}{„uid“:„9f6fec1“}

Vielen Dank schon mal für eure Hinweise.
