Hallo, seit Freitag ist es uns nicht mehr möglich über die RESTAPI neue Artikel anzulegen. Die API meldet immer “Validation error” Update sind allerdings ohne Probleme möglich. Am Script, das die Daten an die API gibt wurde auch nichts geändert. Das ganze fällt mit den Kategorien zusammen, diese lassen sich seit Freitag ebenfalls nicht mehr aktualisieren. Wenn ich das Array an die Schnittstelle zum Update gebe, klappt es, Neuanlage nicht. Wenn ich den Grundartikel im Backend erstelle, also nur Artikelnummer eintragen und speichern, anschließend den Artikel über die API einlese klappt es. Wenn dieser komplett neu ins System kommt, klappt es nicht mehr. Update mit $client->put(‘articles/’.$ArticleID, $xml): [code] $xml = array ( [KaDIS-Artikelsteuerung] => aktiv [active] => 1 [mainDetail] => Array ( [number] => 104439 [prices] => Array ( [0] => Array ( [customerGroupKey] => EK [price] => 8.29 [pseudoPrice] => 0 [basePrice] => 0 [from] => 1 [to] => beliebig ) ) [supplierNumber] => 7000000 [kind] => 1 [active] => 1 [weight] => 0.500 [width] => 0.000 [len] => 0.000 [height] => 0.000 [minPurchase] => 1 [purchaseUnit] => 1.0000 [referenceUnit] => 1.000 [unit] => Array ( [unit] => Stück [name] => Stück ) [packUnit] => Stück [shippingTime] => 5 ) [name] => 50m PP-Schnur [description] => 50m PP-Schnur [descriptionLong] =>
Polypropylenschnur
[keywords] => PP-Schnur, 5mm [lastStock] => 1 [categories] => Array ( [492] => Array ( [id] => 492 ) ) [supplierId] => 2 [taxId] => 1 [related] => [similar] => ) [/code] = Success Neuanlage mit $client->post(‘articles’, $xml): [code] ( [KaDIS-Artikelsteuerung] => aktiv [active] => 1 [mainDetail] => Array ( [number] => 104441 [prices] => Array ( [0] => Array ( [customerGroupKey] => EK [price] => 3.95 [pseudoPrice] => 0 [basePrice] => 0 [from] => 1 [to] => beliebig ) ) [supplierNumber] => 7000000 [kind] => 1 [active] => 1 [inStock] => 6 [weight] => 0.100 [width] => 0.000 [len] => 0.000 [height] => 0.000 [minPurchase] => 1 [purchaseUnit] => 1.0000 [referenceUnit] => 1.000 [unit] => Array ( [unit] => Stück [name] => Stück ) [packUnit] => Stück [shippingTime] => 5 ) [name] => 3m Schrägband [description] => 3m Schrägband [descriptionLong] =>
Schrägband
[keywords] => Schrägband [lastStock] => 1 [categories] => Array ( [224] => Array ( [id] => 224 ) ) [supplierId] => 2 [taxId] => 1 [related] => [similar] => ) [/code] = Validation error [2014-12-09 11:35:41] core.ERROR: exception 'Shopware\Components\Api\Exception\ValidationException' in /var/www/vhosts/\*\*\*\*.de/httpdocs/engine/Shopware/Components/Api/Resource/Article.php:537 Stack trace: #0 /var/www/vhosts/\*\*\*\*.de/httpdocs/engine/Shopware/Controllers/Api/Articles.php(90): Shopware\Components\Api\Resource\Article-\>create(Array) #1 /var/www/vhosts/\*\*\*\*.de/httpdocs/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Api\_Articles-\>postAction() #2 /var/www/vhosts/\*\*\*\*.de/httpdocs/engine/Library/Enlight/Controller/Dispatcher/Default.php(528): Enlight\_Controller\_Action-\>dispatch('postAction') #3 /var/www/vhosts/\*\*\*\*.de/httpdocs/engine/Library/Enlight/Controller/Front.php(228): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #4 /var/www/vhosts/\*\*\*\*.de/httpdocs/engine/Shopware/Kernel.php(141): Enlight\_Controller\_Front-\>dispatch() #5 /var/www/vhosts/\*\*\*\*.de/httpdocs/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(472): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #6 /var/www/vhosts/\*\*\*\*.de/httpdocs/engine/Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #7 /var/www/vhosts/\*\*\*\*.de/httpdocs/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(243): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #8 /var/www/vhosts/\*\*\*\*.de/httpdocs/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(260): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #9 /var/www/vhosts/\*\*\*\*.de/httpdocs/engine/Shopware/Components/HttpCache/AppCache.php(132): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true) #10 /var/www/vhosts/\*\*\*\*.de/httpdocs/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(189): Shopware\Components\HttpCache\AppCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true) #11 /var/www/vhosts/\*\*\*\*.de/httpdocs/engine/Shopware/Components/HttpCache/AppCache.php(113): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 /var/www/vhosts/\*\*\*\*.de/httpdocs/shopware.php(109): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #13 {main} [] {"uid":"\*\*\*\*"}
Weiß jemand wie man raus bekommt, warum dies hier nicht mehr funktioniert? Beste Grüße