# Zwei Fehler nach Update auf Shopware 4.2.5

**URL:** <https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114>\
**Category:** Allgemein\
**Created:** [16. August 2016 um 20:01 UTC](https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114 "2016-08-16T20:01:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kweb](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kweb](https://forum.shopware.com/u/kweb)\
**Post date:** [16. August 2016 um 20:01 UTC](https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114/1 "2016-08-16T20:01:19Z")

</div>

Hallo Gemeinde,

wir haben mehrere Fehler / Probleme beim Update auf Shopware 5.2:

Problem 1:

Wenn ich mich als Kunde im Frontend einloggen will kommt nach dem Login folgende Fehlermeldung:  
&nbsp;

```
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ub.customernumber' in 'field list' in engine/Library/Zend/Db/Statement/Pdo.php on line 234
Stack trace:

#0 engine/Library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array)
#1 engine/Library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 engine/Library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('\n SELECT...', Array)
#3 engine/Library/Enlight/Components/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->query('\n SELECT...', Array)
#4 engine/Library/Zend/Db/Adapter/Abstract.php(756): Enlight_Components_Db_Adapter_Pdo_Mysql->query('\n SELECT...', Array)
#5 engine/Shopware/Plugins/Community/Frontend/SwagPromotion/Components/DataProvider/CustomerDataProvider.php(132): Zend_Db_Adapter_Abstract->fetchRow()
#6 engine/Shopware/Plugins/Community/Frontend/SwagPromotion/Components/DataProvider/CustomerDataProvider.php(62): Shopware\SwagPromotion\Components\DataProvider\CustomerDataProvider->getCustomerData()
#7 engine/Shopware/Plugins/Community/Frontend/SwagPromotion/Components/BasketContextBuilder.php(114): Shopware\SwagPromotion\Components\DataProvider\CustomerDataProvider->get()
#8 engine/Shopware/Plugins/Community/Frontend/SwagPromotion/Components/Promotion/Selector/PromotionSelector.php(94): Shopware\SwagPromotion\Components\BasketContextBuilder->getCustomerData()
#9 engine/Shopware/Plugins/Community/Frontend/SwagPromotion/Subscriber/PromotionSubscriber.php(123): Shopware\SwagPromotion\Components\Promotion\Selector\PromotionSelector->apply()
#10 [internal function]: Shopware\SwagPromotion\Subscriber\PromotionSubscriber->afterGetBasket(Object(Enlight_Hook_HookArgs))
#11 engine/Library/Enlight/Event/Handler/Default.php(91): call_user_func(Array, Object(Enlight_Hook_HookArgs))
#12 engine/Library/Enlight/Event/EventManager.php(296): Enlight_Event_Handler_Default->execute(Object(Enlight_Hook_HookArgs))
#13 engine/Library/Enlight/Hook/HookManager.php(191): Enlight_Event_EventManager->filter('sBasket::sGetBa...', Array, Object(Enlight_Hook_HookArgs))
#14 var/cache/production_201608150941/proxies/sBasketProxy.php(25): Enlight_Hook_HookManager->executeHooks(Object(Shopware_Proxies_sBasketProxy), 'sGetBasket', Array)
#15 engine/Shopware/Core/sBasket.php(1713): Shopware_Proxies_sBasketProxy->sGetBasket()
#16 engine/Shopware/Controllers/Frontend/Account.php(547): sBasket->sRefreshBasket()
#17 engine/Shopware/Controllers/Frontend/Account.php(252): Shopware_Controllers_Frontend_Account->refreshBasket()
#18 engine/Library/Enlight/Controller/Action.php(159): Shopware_Controllers_Frontend_Account->loginAction()
#19 engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight_Controller_Action->dispatch('loginAction')
#20 engine/Library/Enlight/Controller/Front.php(223): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#21 engine/Shopware/Kernel.php(176): Enlight_Controller_Front->dispatch()
#22 vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#24 vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#25 vendor/symfony/http-kernel/HttpCache/HttpCache.php(275): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true)
#26 engine/Shopware/Components/HttpCache/AppCache.php(133): Symfony\Component\HttpKernel\HttpCache\HttpCache->invalidate(Object(Symfony\Component\HttpFoundation\Request), true)
#27 vendor/symfony/http-kernel/HttpCache/HttpCache.php(206): Shopware\Components\HttpCache\AppCache->invalidate(Object(Symfony\Component\HttpFoundation\Request), true)
#28 engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 shopware.php(101): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#30 {main}

```

Problem 2:  
Wir können keine Artikel mehr in den Warenkorb legen. Also es werden schon Artikel in den Warenkorb gelegt, allerdings bleibt nach dem Klick auf „In den Warenkorb legen“ der Ladebalken im rechten Off-Canvas stehen. Klicke ich dann irgendwo anders hin befindet sich der Artikel im Warenkorb.

Kann mir jemand mögliche Fehlerursachen nennen?

Gruß

kweb

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [16. August 2016 um 20:32 UTC](https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114/2 "2016-08-16T20:32:37Z")

</div>

Du musst das Plugin&nbsp;SwagPromotion deinstallieren oder (falls verfügbar) updaten.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![kweb](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kweb](https://forum.shopware.com/u/kweb)\
**Post date:** [16. August 2016 um 20:45 UTC](https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114/3 "2016-08-16T20:45:17Z")

</div>

Hi,

also ausgerechnet eines der neusten Shopware Plugins soll dafür verantwortlich sein?! Also wir haben eigentlich die neuste Version am laufen und kompatibel für 5.2.5 steht da auch…

Also vor dem Update deinstallieren?! Welcher Fehler ist denn dafür verantwortlich? 1 oder 2?

---

<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:** [16. August 2016 um 21:18 UTC](https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114/4 "2016-08-16T21:18:57Z")

</div>

Hallo,

da ist eine Abfrage/Prüfung aktiv. Erkennt man an der Meldung. Abgefragt wird die Kundennummer bei der Rechnungsadresse.&nbsp;

Seit Shopware 5.2 liegt das Feld dort aber gar nicht mehr in der Datenbank.

Ggf. ist also einfach nur eine Abfrage/Regel alt.

Sebastian

---

<div class="post-metadata">

**Author:** ![kweb](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kweb](https://forum.shopware.com/u/kweb)\
**Post date:** [17. August 2016 um 08:13 UTC](https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114/5 "2016-08-17T08:13:13Z")

</div>

Hallo Sebastian,

was heißt den Abfrage/Regel alt? Template Override oder wie muss ich das verstehen? Was kann ich denn dagegen machen?!

Gruß

kweb

---

<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:** [17. August 2016 um 09:51 UTC](https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114/6 "2016-08-17T09:51:00Z")

</div>

Hallo,

es gibt ja bei Advanced Promotion Suite Regelwerke, wann z.B. etwas im Warenkorb greifen soll.  
Ob es die Regel dort gibt, kannst du auch schnell rausfinden, in dem das Plugin temporär kurz auf inaktiv gestellt wird. Geht dann der Warenkorb wieder?

Sebastian

---

<div class="post-metadata">

**Author:** ![kweb](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kweb](https://forum.shopware.com/u/kweb)\
**Post date:** [29. August 2016 um 07:49 UTC](https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114/7 "2016-08-29T07:49:06Z")

</div>

Hi, lag daran, dass es für die Promotion Sweet wohl ein Update gab, welches man NACH dem Upgrade auf 5.2.5 installieren muss. Danach funktionierte beides wieder. Besten Dank,

---

<div class="post-metadata">

**Author:** ![kadis](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kadis](https://forum.shopware.com/u/kadis)\
**Post date:** [28. Oktober 2016 um 09:21 UTC](https://forum.shopware.com/t/zwei-fehler-nach-update-auf-shopware-4-2-5/39114/8 "2016-10-28T09:21:08Z")

</div>

Wir bekommen seit dem Update auf 5.2.x diesen Fehler auch im Gutschein/Coupon Modul und können deswegen keine eMails mehr an die Kunden senden.

Es kommt einfach nur die Meldung “Gutschein konnte nicht versendet werden”  
Wie kann man das beheben?

```
core.ERROR: exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ub.customernumber' in 'field list''

```

&nbsp;
