Hallo zusammen, nachdem ich im Backend unter "System/Grundeinstellung die Logdatei per Mail zu kommen lasse, habe ich bereits die ein oder andere Meldung bekommen. Hat das etwas mit meinem Artikel anlegen aus meine WaWi hoch in den Shop zu tun? Hier mal die Meldung exception 'Shopware\Components\Api\Exception\CustomValidationException' with message '\Shopware\Models\Category\Category by id 0 not found' in /hifwfkdw/www.hifi-stecker.de/engine/Shopware/Components/Api/Resource/Resource.php:446 Stack trace: #0 /hifwfkdw/www.hifi-stecker.de/engine/Shopware/Components/Api/Resource/Article.php(1144): Shopware\Components\Api\Resource\Resource-\>getManyToManySubElement(Object(Doctrine\ORM\PersistentCollection), Array, '\\Shopware\\Model...') #1 /hifwfkdw/www.hifi-stecker.de/engine/Shopware/Components/Api/Resource/Article.php(709): Shopware\Components\Api\Resource\Article-\>prepareCategoryAssociatedData(Array, Object(Shopware\Models\Article\Article)) #2 /hifwfkdw/www.hifi-stecker.de/engine/Shopware/Components/Api/Resource/Article.php(613): Shopware\Components\Api\Resource\Article-\>prepareAssociatedData(Array, Object(Shopware\Models\Article\Article)) #3 /hifwfkdw/www.hifi-stecker.de/engine/Shopware/Controllers/Api/Articles.php(116): Shopware\Components\Api\Resource\Article-\>update('1446', Array) #4 /hifwfkdw/www.hifi-stecker.de/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Api\_Articles-\>putAction() #5 /hifwfkdw/www.hifi-stecker.de/engine/Library/Enlight/Controller/Dispatcher/Default.php(528): Enlight\_Controller\_Action-\>dispatch('putAction') #6 /hifwfkdw/www.hifi-stecker.de/engine/Library/Enlight/Controller/Front.php(228): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #7 /hifwfkdw/www.hifi-stecker.de/engine/Shopware/Kernel.php(141): Enlight\_Controller\_Front-\>dispatch() #8 /hifwfkdw/www.hifi-stecker.de/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(472): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #9 /hifwfkdw/www.hifi-stecker.de/engine/Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #10 /hifwfkdw/www.hifi-stecker.de/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(243): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #11 /hifwfkdw/www.hifi-stecker.de/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(260): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #12 /hifwfkdw/www.hifi-stecker.de/engine/Shopware/Components/HttpCache/AppCache.php(132): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true) #13 /hifwfkdw/www.hifi-stecker.de/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(189): Shopware\Components\HttpCache\AppCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true) #14 /hifwfkdw/www.hifi-stecker.de/engine/Shopware/Components/HttpCache/AppCache.php(113): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /hifwfkdw/www.hifi-stecker.de/shopware.php(109): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #16 {main} Time: 2014-10-09T18:56:10.299217+0200 Channel: core request: { "uri": "/api/articles/1446?", "method": "PUT", "query": { "module": "api", "controller": "articles", "action": "1446" }, "post": { "mainDetail": { "number": "mo124230", "active": 1, "inStock": 2, "weight": "0.094", "ean": "4007754059793", "shippingTime": "4 - 6", "packUnit": null, "prices": [{ "price": 5.989984, "customerGroupKey": "EK", "from": 1 }] }, "taxId": 1, "name": "MZF-8627 Lautsprecher-Schutzgitter 6,5\"", "description": "Lautsprecher-Schutzgitter MZF-8627", "descriptionLong": "", "keywords": "Lautsprecher-Schutzgitter, Lautsprecher, Lautsprecher, Monacor", "metaTitle": "Lautsprecher-Schutzgitter 170 mm", "supplier": { "link": "www.monacor.de/produktdetailseite/?artikelid=2472&L=0" }, "translations": { "2": { "name": "MZF-8627 Lautsprecher-Schutzgitter 6,5\"", "description": "Lautsprecher-Schutzgitter MZF-8627", "descriptionLong": "", "shopId": 2 } }, "active": 1, "supplierId": 4, "categories": [{ "id": 0 }], "images": [{ "link": "http://www.hifi-stecker.de/media/image/Artmo124230.jpg", "extension": "jpg", "description": "MZF-8627 Lautsprecher-Schutzgitter 6,5\"", "main": 1 }], "changed": "2014-10-09T18:56:10+0200" } } session: No session data available shop: No shop data available
Hi, das Problem kannst du ja aus der Meldung ablesen. Also per API wird die Kategorie ID 0 gesetzt. 0 gibt es auch nicht. Daher wohl der Fehler Sebastian