# Plugin DHL Integration: Fehlermeldung auf Bestellbestätigung

**URL:** <https://forum.shopware.com/t/plugin-dhl-integration-fehlermeldung-auf-bestellbestatigung/21581>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [28. Juli 2014 um 11:38 UTC](https://forum.shopware.com/t/plugin-dhl-integration-fehlermeldung-auf-bestellbestatigung/21581 "2014-07-28T11:38:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthias](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@matthias](https://forum.shopware.com/u/matthias)\
**Post date:** [28. Juli 2014 um 11:38 UTC](https://forum.shopware.com/t/plugin-dhl-integration-fehlermeldung-auf-bestellbestatigung/21581/1 "2014-07-28T11:38:04Z")

</div>

Es kommt eine Fehlermeldung nach der Ausführung einer Bestellung. Die Bestellung wird aber korrekt in Shopware angelegt. Es wird hier die Shopware V. 4.2.3 und das Plugin DHL-Integration 1.0.3 verwendet. An exception occurred while executing ‘INSERT INTO s\_order\_attributes (orderID, attribute1, attribute2, attribute3, attribute4, attribute5, attribute6, mopt\_payone\_txid, mopt\_payone\_status, mopt\_payone\_sequencenumber, mopt\_payone\_is\_authorized, mopt\_payone\_is\_finally\_captured, mopt\_payone\_clearing\_data, swag\_dhl\_address, swag\_dhl\_order\_info) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [1259, null, null, null, null, null, null, null, null, null, null, null, null, null, null]: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`[...]`.`s_order_attributes`, CONSTRAINT `s_order_attributes_ibfk_1` FOREIGN KEY (`orderID`) REFERENCES `s_order` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION) in vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php on line 91 Stack trace: #0 vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(167): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), ‘INSERT INTO s\_o…’, Array) #1 Doctrine/ORM/Persisters/BasicEntityPersister.php(279): Doctrine\DBAL\Statement-\>execute() #2 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(952): Doctrine\ORM\Persisters\BasicEntityPersister-\>executeInserts() #3 vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(335): Doctrine\ORM\UnitOfWork-\>executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(389): Doctrine\ORM\UnitOfWork-\>commit(NULL) #5 Shopware/Plugins/Community/Frontend/SwagDhl/Subscriber/Checkout.php(268): Doctrine\ORM\EntityManager-\>flush() #6 [internal function]: Shopware\SwagDhl\Subscriber\Checkout-\>afterOrder(Object(Enlight\_Hook\_HookArgs)) #7 Enlight/Event/Handler/Default.php(91): call\_user\_func(Array, Object(Enlight\_Hook\_HookArgs)) #8 Enlight/Event/EventManager.php(301): Enlight\_Event\_Handler\_Default-\>execute(Object(Enlight\_Hook\_HookArgs)) #9 Enlight/Hook/HookManager.php(195): Enlight\_Event\_EventManager-\>filter(‘sOrder::sSaveOr…’, 20174, Object(Enlight\_Hook\_HookArgs)) #10 cache/proxies/sOrderProxy.php(23): Enlight\_Hook\_HookManager-\>executeHooks(Object(Shopware\_Proxies\_sOrderProxy), ‘sSaveOrder’, Array) #11 Shopware/Controllers/Frontend/Checkout.php(563): Shopware\_Proxies\_sOrderProxy-\>sSaveOrder() #12 [internal function]: Shopware\_Controllers\_Frontend\_Checkout-\>saveOrder() #13 cache/proxies/ShopwareControllersFrontendCheckoutProxy.php(11): call\_user\_func\_array(Array, Array) #14 Enlight/Hook/HookManager.php(191): Shopware\_Proxies\_ShopwareControllersFrontendCheckoutProxy-\>executeParent(‘saveOrder’, Array) #15 cache/proxies/ShopwareControllersFrontendCheckoutProxy.php(30): Enlight\_Hook\_HookManager-\>executeHooks(Object(Shopware\_Proxies\_ShopwareControllersFrontendCheckoutProxy), ‘saveOrder’, Array) #16 Shopware/Controllers/Frontend/Checkout.php(242): Shopware\_Proxies\_ShopwareControllersFrontendCheckoutProxy-\>saveOrder() #17 Enlight/Controller/Action.php(159): Shopware\_Controllers\_Frontend\_Checkout-\>finishAction() #18 Enlight/Controller/Dispatcher/Default.php(528): Enlight\_Controller\_Action-\>dispatch(‘finishAction’) #19 Enlight/Controller/Front.php(228): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #20 Shopware/Kernel.php(141): Enlight\_Controller\_Front-\>dispatch() #21 vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(473): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #23 vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(244): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #24 vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(261): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #25 Shopware/Components/HttpCache/AppCache.php(132): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true) #26 vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(190): Shopware\Components\HttpCache\AppCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true) #27 Shopware/Components/HttpCache/AppCache.php(113): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 shopware.php(91): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #29 {main} Hat jemd. eine solche Fehlermeldung schon erhalten? Einen Hinweis aus dem Bugtracker habe ich bereits: Die Fehlermeldung deutet auf ein Problem mit den ForeignKeys hin.

---

<div class="post-metadata">

**Author:** ![aquaa](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@aquaa](https://forum.shopware.com/u/aquaa)\
**Post date:** [28. Juli 2014 um 14:07 UTC](https://forum.shopware.com/t/plugin-dhl-integration-fehlermeldung-auf-bestellbestatigung/21581/2 "2014-07-28T14:07:52Z")

</div>

Für mich sieht es so aus, also würde die DHL integration mit Payone kollidieren.

---

<div class="post-metadata">

**Author:** ![tauchausflug](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@tauchausflug](https://forum.shopware.com/u/tauchausflug)\
**Post date:** [30. Juli 2014 um 12:59 UTC](https://forum.shopware.com/t/plugin-dhl-integration-fehlermeldung-auf-bestellbestatigung/21581/3 "2014-07-30T12:59:49Z")

</div>

Selber Fehler kann keine Pakete mehr mit ­DHL ­frankieren :­-( Plug-in lädt nicht mehr

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [30. Juli 2014 um 13:10 UTC](https://forum.shopware.com/t/plugin-dhl-integration-fehlermeldung-auf-bestellbestatigung/21581/4 "2014-07-30T13:10:25Z")

</div>

Hallo, Die Anfrage des Threaderstellers deutet auf ein Problem mit den Datenbankbeziehungen oder eine Kollsision mit einem Fremdplugin hin. Im ersten Schritt sollte hier mal eine Foreign-Key-Reparatur durchgeführt werden: [http://wiki.shopware.de/Foreign-Keys-re … l\_954.html](http://wiki.shopware.de/Foreign-Keys-reparieren%5C_detail%5C_954.html) Sollte dies nichts helfen, so sollte einmal Testweise das DHL Plugin neu installiert werden. Die Problematik mit dem Backend Modul ist eine andere. Hier sollten bitte einmal folgende Dinge überprüft werden: - Ist die aktuellste Version des Plugins installiert? - Ist das Plugin zweimal auf dem Server vorhanden (einmal in /engine/Shopware/Plugins/Default/Frontend/SwagDHL und einmal in /engine/Shopware/Plugins/Community/Frontend/SwagDHL)? - Wurde bereits eine Neuinstallation versucht? (Im Anschluss müssen die Zugangsdaten ggf. erneut hinterlegt werden) Ansonsten benötigen wir weitere Informationen. Seit wann geht das Backend-Modul nicht mehr auf? Viele Grüße Moritz

---

<div class="post-metadata">

**Author:** ![tauchausflug](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@tauchausflug](https://forum.shopware.com/u/tauchausflug)\
**Post date:** [30. Juli 2014 um 13:17 UTC](https://forum.shopware.com/t/plugin-dhl-integration-fehlermeldung-auf-bestellbestatigung/21581/5 "2014-07-30T13:17:07Z")

</div>

Das Backend wird nicht mehr angezeigt seit dem Update auf Version 1.1.0 [2014-07-30 12:54:36] core.ERROR: exception ‚Doctrine\ORM\ORMException‘ with message ‚The EntityManager is closed.‘ in /var/www/vhosts/xxxxx.de/shop/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:129

---

<div class="post-metadata">

**Author:** ![tauchausflug](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@tauchausflug](https://forum.shopware.com/u/tauchausflug)\
**Post date:** [30. Juli 2014 um 13:20 UTC](https://forum.shopware.com/t/plugin-dhl-integration-fehlermeldung-auf-bestellbestatigung/21581/6 "2014-07-30T13:20:09Z")

</div>

Plug-in Löschen und neu installieren dann geht es 😃 sollte aber bei einem Update nicht nötig ­sein
