# Kauf auf Rechnung funktioniert nicht mehr SHOPWARE BUG?!? - SW Kucken!!

**URL:** <https://forum.shopware.com/t/kauf-auf-rechnung-funktioniert-nicht-mehr-shopware-bug-sw-kucken/38514>\
**Category:** Allgemein\
**Created:** [25. Juli 2016 um 12:37 UTC](https://forum.shopware.com/t/kauf-auf-rechnung-funktioniert-nicht-mehr-shopware-bug-sw-kucken/38514 "2016-07-25T12:37:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klara](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@Klara](https://forum.shopware.com/u/Klara)\
**Post date:** [25. Juli 2016 um 12:37 UTC](https://forum.shopware.com/t/kauf-auf-rechnung-funktioniert-nicht-mehr-shopware-bug-sw-kucken/38514/1 "2016-07-25T12:37:19Z")

</div>

Hallo,

wir haben letzte Woche Shopware auf Version 5.2.2 geupdatet, seitdem funktioniert die Zahlart Rechnung nicht mehr.

Im Shopware Log kommt folgender Fehler:

core.ERROR: exception ‚Doctrine\ORM\Query\QueryException‘ with message ‚SELECT orders, details, documents, payment, customer, paymentInstances, shipping, billing, billingCountry, shippingCountry, shop, dispatch, paymentStatus, orderStatus, documentType, billingAttribute, attribute, detailAttribute, documentAttribute, shippingAttribute, paymentAttribute, dispatchAttribute, subShop, locale, customerBilling FROM Shopware\Models\Order\Order orders LEFT JOIN orders.details details LEFT JOIN orders.documents documents LEFT JOIN documents.type documentType LEFT JOIN orders.payment payment LEFT JOIN orders.paymentStatus paymentStatus LEFT JOIN orders.orderStatus orderStatus LEFT JOIN orders.customer customer LEFT JOIN orders.paymentInstances paymentInstances LEFT JOIN orders.billing billing LEFT JOIN billing.country billingCountry LEFT JOIN orders.shipping shipping LEFT JOIN orders.shop shop LEFT JOIN orders.dispatch dispatch LEFT JOIN payment.attribute paymentAttribute LEFT JOIN dispatch.attribute dispatchAttribute LEFT JOIN billing.attribute billingAttribute LEFT JOIN shipping.attribute shippingAttribute LEFT JOIN details.attribute detailAttribute LEFT JOIN documents.attribute documentAttribute LEFT JOIN orders.attribute attribute LEFT JOIN orders.languageSubShop subShop LEFT JOIN subShop.locale locale LEFT JOIN shipping.country shippingCountry LEFT JOIN customer.billing customerBilling WHERE orders.status NOT IN(‘-1’) AND orders.number IS NOT NULL AND (orders.number = ?1 OR customerBilling.number = ?1 OR billing.company = ?1 OR billing.firstName = ?1 OR billing.lastName = ?1 OR billing.zipCode = ?1 OR billing.city = ?1)’ in /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:41 Stack trace: #0 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(483): Doctrine\ORM\Query\QueryException::dqlError(‚SELECT orders, …‘) #1 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(759): Doctrine\ORM\Query\Parser-\>semanticalError(‚Class Shopware\…‘, Array) #2 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(279): Doctrine\ORM\Query\Parser-\>processDeferredPathExpressions(Object(Doctrine\ORM\Query\AST\SelectStatement)) #3 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(351): Doctrine\ORM\Query\Parser-\>getAST() #4 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php(281): Doctrine\ORM\Query\Parser-\>parse() #5 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php(293): Doctrine\ORM\Query-\>\_parse() #6 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(969): Doctrine\ORM\Query-\>\_doExecute() #7 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(924): Doctrine\ORM\AbstractQuery-\>executeIgnoreQueryCache(NULL, 3) #8 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(751): Doctrine\ORM\AbstractQuery-\>execute(NULL, 3) #9 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php(151): Doctrine\ORM\AbstractQuery-\>getScalarResult() #10 /htdocs/engine/Shopware/Plugins/Community/Core/GhswShopwareConnect/Components/Api/Resource/GhOrder.php(172): Doctrine\ORM\Tools\Pagination\Paginator-\>getIterator() #11 /htdocs/engine/Shopware/Plugins/Community/Core/GhswShopwareConnect/Controllers/Api/GhOrders.php(68): Shopware\Components\Api\Resource\GhOrder-\>getListBySearch(0, 100, Array, Array) #12 /htdocs/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Api\_GhOrders-\>indexAction() #13 /htdocs/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch(‚indexAction‘) #14 /htdocs/engine/Library/Enlight/Controller/Front.php(226): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #15 /htdocs/engine/Shopware/Kernel.php(176): Enlight\_Controller\_Front-\>dispatch() #16 /htdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /htdocs/engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #18 /htdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(444): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #19 /htdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(344): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>fetch(Object(Symfony\Component\HttpFoundation\Request), true) #20 /htdocs/engine/Shopware/Components/HttpCache/AppCache.php(178): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true) #21 /htdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(210): Shopware\Components\HttpCache\AppCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true) #22 /htdocs/engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /htdocs/shopware.php(101): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #24 {main} &nbsp;Next exception ‚Doctrine\ORM\Query\QueryException‘ with message ‚[Semantical Error] line 0, col 1438 near ‚number = ?1 OR‘: Error: Class Shopware\Models\Customer\Billing has no field or association named number‘ in /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:63 Stack trace: #0 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(483): Doctrine\ORM\Query\QueryException::semanticalError(‚line 0, col 143…‘, Object(Doctrine\ORM\Query\QueryException)) #1 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(759): Doctrine\ORM\Query\Parser-\>semanticalError(‚Class Shopware\…‘, Array) #2 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(279): Doctrine\ORM\Query\Parser-\>processDeferredPathExpressions(Object(Doctrine\ORM\Query\AST\SelectStatement)) #3 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php(351): Doctrine\ORM\Query\Parser-\>getAST() #4 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php(281): Doctrine\ORM\Query\Parser-\>parse() #5 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php(293): Doctrine\ORM\Query-\>\_parse() #6 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(969): Doctrine\ORM\Query-\>\_doExecute() #7 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(924): Doctrine\ORM\AbstractQuery-\>executeIgnoreQueryCache(NULL, 3) #8 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(751): Doctrine\ORM\AbstractQuery-\>execute(NULL, 3) #9 /htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php(151): Doctrine\ORM\AbstractQuery-\>getScalarResult() #10 /htdocs/engine/Shopware/Plugins/Community/Core/GhswShopwareConnect/Components/Api/Resource/GhOrder.php(172): Doctrine\ORM\Tools\Pagination\Paginator-\>getIterator() #11 /htdocs/engine/Shopware/Plugins/Community/Core/GhswShopwareConnect/Controllers/Api/GhOrders.php(68): Shopware\Components\Api\Resource\GhOrder-\>getListBySearch(0, 100, Array, Array) #12 /htdocs/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Api\_GhOrders-\>indexAction() #13 /htdocs/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch(‚indexAction‘) #14 /htdocs/engine/Library/Enlight/Controller/Front.php(226): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #15 /htdocs/engine/Shopware/Kernel.php(176): Enlight\_Controller\_Front-\>dispatch() #16 /htdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /htdocs/engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #18 /htdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(444): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #19 /htdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(344): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>fetch(Object(Symfony\Component\HttpFoundation\Request), true) #20 /htdocs/engine/Shopware/Components/HttpCache/AppCache.php(178): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true) #21 /htdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(210): Shopware\Components\HttpCache\AppCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true) #22 /htdocs/engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /htdocs/shopware.php(101): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #24 {main} {„uid“:„bd3c1de“}

&nbsp;

Aufgefallen ist das, weil sich bei den Bestellungen dann die Detailansicht nicht mehr öffnen lässt mit folgdendem JS fehler:

Uncaught TypeError: Cannot read property ‚data‘ of undefined

Zeile: shipping = Ext.create(‚Shopware.apps.Order.model.Shipping‘, billing.data);

&nbsp;

Kennt das Problem wer, oder hat das schon mal gehabt?

---

<div class="post-metadata">

**Author:** ![Klara](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@Klara](https://forum.shopware.com/u/Klara)\
**Post date:** [25. Juli 2016 um 13:37 UTC](https://forum.shopware.com/t/kauf-auf-rechnung-funktioniert-nicht-mehr-shopware-bug-sw-kucken/38514/2 "2016-07-25T13:37:46Z")

</div>

Konnte das Problem beheben, aber ACHTUNG! Scheint ein Shopware bug zu sein in der Version 5.2.2&nbsp;

s\_user\_billingaddress fehlt das Feld custombernumber, weswegen ein Join im Model nicht klappt und die Bestellung auf Rechnung einen Fehler verursacht.

Fügt man das händisch ein funktionieren kommende Bestellungen wieder! Is aber nicht das gelbe vom Ei

---

<div class="post-metadata">

**Author:** ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)\
**Post date:** [25. Juli 2016 um 13:43 UTC](https://forum.shopware.com/t/kauf-auf-rechnung-funktioniert-nicht-mehr-shopware-bug-sw-kucken/38514/3 "2016-07-25T13:43:54Z")

</div>

Hallo,

oh - nein auf keinen Fall die Änderungen manuell da in der Datenbank machen! Das ist kein Bug. Das Feld wurde absichtlich dort entfernt!  
Du hast Anpassungen/Plugins die wohl nicht kompatibel sind! In der genannten Tabelle gehört keine Kundennummer rein.  
Steht auch im Update Guide oder auf Github:&nbsp;Moved s\_user\_billingaddress.customernumber to s\_user table

Also manuelle Anpassung wieder rückgängig machen und prüfen, welche inkompatiblen Anpassungen im Shop vorliegen

Sebastian

---

<div class="post-metadata">

**Author:** ![Klara](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@Klara](https://forum.shopware.com/u/Klara)\
**Post date:** [25. Juli 2016 um 14:10 UTC](https://forum.shopware.com/t/kauf-auf-rechnung-funktioniert-nicht-mehr-shopware-bug-sw-kucken/38514/4 "2016-07-25T14:10:38Z")

</div>

Ok und nochmal zur Ergänzung - Das Plugin für Greyhound scheint allemnach Schuld zu sein 🙂 Haben aber breits ein Update zur Verfügung gestellt…

---

<div class="post-metadata">

**Author:** ![Klara](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@Klara](https://forum.shopware.com/u/Klara)\
**Post date:** [26. Juli 2016 um 10:05 UTC](https://forum.shopware.com/t/kauf-auf-rechnung-funktioniert-nicht-mehr-shopware-bug-sw-kucken/38514/5 "2016-07-26T10:05:16Z")

</div>

Und nochmals der Vollständigkeithalber. Bei dem Plugin “DHL Integration” tritt beim Bestellen, wenn die Versandart DHL ist, ein Fehler auf. Die Bestellung wird zwar im Backend angezeigt, wird aber fehlerhaft angelegt. Außerdem bekommt der Benutzer eine Fehlerseite statt der Bestätigungsseite.

---

<div class="post-metadata">

**Author:** ![sschreier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sschreier/32/23296_2.png) [@sschreier](https://forum.shopware.com/u/sschreier)\
**Post date:** [26. Juli 2016 um 10:09 UTC](https://forum.shopware.com/t/kauf-auf-rechnung-funktioniert-nicht-mehr-shopware-bug-sw-kucken/38514/6 "2016-07-26T10:09:12Z")

</div>

> [@Klara schrieb:](https://forum.shopware.com/profile/23118/Klara "Klara")
> 
> Und nochmals der Vollständigkeithalber. Bei dem Plugin „DHL Integration“ tritt beim Bestellen, wenn die Versandart DHL ist, ein Fehler auf. Die Bestellung wird zwar im Backend angezeigt, wird aber fehlerhaft angelegt. Außerdem bekommt der Benutzer eine Fehlerseite statt der Bestätigungsseite.

Hallo,

ist ja auch klar - „Shopware DHL Integration“ ( [http://store.shopware.com/swagdhl/shopware-dhl-integration.html](http://store.shopware.com/swagdhl/shopware-dhl-integration.html) ) ist ja auch noch überhaupt nicht mit Shopware ab Version 5.2 kompatibel ![Wink](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/wink.png "Wink"). Zu dem Thema gibt es im Forum aber schon genug Themen. Man sollte niemals ein Update des Shopsystems machen, wenn nicht alle Plugins mit der neuen Version kompatibel sind - außer man kann auf die jeweilige Funktion der nicht kompatiblen Plugins verzichten.

Beste Grüße

Sebastian
