# Kundenspezifische Preise - INSERT INTO Fehler - ist das ein Bug?

**URL:** <https://forum.shopware.com/t/kundenspezifische-preise-insert-into-fehler-ist-das-ein-bug/95538>\
**Category:** Plugins\
**Created:** [29. Juli 2022 um 09:36 UTC](https://forum.shopware.com/t/kundenspezifische-preise-insert-into-fehler-ist-das-ein-bug/95538 "2022-07-29T09:36:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Irolan](https://avatars.discourse-cdn.com/v4/letter/i/8491ac/32.png) [@Irolan](https://forum.shopware.com/u/Irolan)\
**Post date:** [29. Juli 2022 um 09:36 UTC](https://forum.shopware.com/t/kundenspezifische-preise-insert-into-fehler-ist-das-ein-bug/95538/1 "2022-07-29T09:36:49Z")

</div>

Hallo,

wollte heute Shopware updaten, dabei fiel mir auf, dass jedes Mal, wenn ich die Plugin-Einstellungen öffne, Plugins updaten, installieren oder deinstallieren will, folgende Fehlermeldung kommt:

An exception occurred while executing ‚INSERT INTO s\_core\_plugins (namespace, name, label, version, author, copyright, description, license, support, link, source, update\_date, update\_version, update\_source, capability\_update, capability\_install, capability\_enable, capability\_secure\_uninstall, refresh\_date, added) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)‘ with params [„Backend“, „SwagUserPrice“, „Customer-specific prices“, „2.3.2“, „shopware AG“, „Copyright \u00a9 2012, shopware AG“, null, null, null, null, „Community“, null, „2.3.2“, null, true, true, true, true, „2022-07-29 10:42:44“, „2022-07-29 10:42:44“]:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‚SwagUserPrice‘ for key ‚name‘

Er versucht den bereits vorhandenen Eintrag vom name=„SwagUserPrice“ hinzuzufügen mit namespace=„Backend“. Das schlägt natürlich fehl, weil der name=„SwagUserPrice“ bereits mit namespace=„ShopwarePlugins“ vorhanden ist. Testweise den Namespace anzupassen hat dafür gesorgt, dass der Shop gar nicht mehr funktioniert:

**Fatal error** : Uncaught TypeError: Argument 4 passed to SwagUserPrice\Bundle\SearchBundleDBAL\PriceHelper::\_\_construct() must be an instance of SwagUserPrice\Bundle\StoreFrontBundle\Service\DependencyProvider, instance of Shopware\SwagUserPrice\Bundle\StoreFrontBundle\Service\DependencyProvider given, called in /var/www/vhosts/arrow-shop.com/arrow-shop.com/var/cache/production\_202207181347/proxies/ShopwareProduction436eccb5b3d177710ac245e365abd7b9a43b0c35ProjectContainer.php on line 2453 and defined in /var/www/vhosts/arrow-shop.com/arrow-shop.com/custom/plugins/SwagUserPrice/Bundle/SearchBundleDBAL/PriceHelper.php:48 Stack trace: #0 /var/www/vhosts/arrow-shop.com/arrow-shop.com/var/cache/production\_202207181347/proxies/ShopwareProduction436eccb5b3d177710ac245e365abd7b9a43b0c35ProjectContainer.php(2453): SwagUserPrice\Bundle\SearchBundleDBAL\PriceHelper-\>\_\_construct() #1 /var/www/vhosts/arrow-shop.com/arrow-shop.com/vendor/symfony/dependency-injection/Container.php(257): ShopwareProduction436eccb5b3d177710ac245e365abd7b9a43 in **/var/www/vhosts/arrow-shop.com/arrow-shop.com/custom/plugins/SwagUserPrice/Bundle/SearchBundleDBAL/PriceHelper.php** on line **48**

Hat sich da ein Programmierer vertan, oder was ist da los?

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [29. Juli 2022 um 12:06 UTC](https://forum.shopware.com/t/kundenspezifische-preise-insert-into-fehler-ist-das-ein-bug/95538/2 "2022-07-29T12:06:39Z")

</div>

Hallo @Irolan

bitte stelle sicher, dass das Plugin „SwagUserPrice“ nur unter „/custom/plugins“ liegt.

So wie es aussieht, hast du es scheinbar noch unter „/engine/Shopware/Plugins/Community/Backend“ oder „/engine/Shopware/Plugins/Local/Backend“ liegen.

Viele Grüße aus Schöppingen  
Michael Telgmann

---

<div class="post-metadata">

**Author:** ![Irolan](https://avatars.discourse-cdn.com/v4/letter/i/8491ac/32.png) [@Irolan](https://forum.shopware.com/u/Irolan)\
**Post date:** [29. Juli 2022 um 12:24 UTC](https://forum.shopware.com/t/kundenspezifische-preise-insert-into-fehler-ist-das-ein-bug/95538/3 "2022-07-29T12:24:17Z")

</div>

In der Tat, das wars. Kann man ja nicht ahnen, dass der plötzlich woanders liegen muss. Nehme an, da ist ein Update des Plugins schiefgegangen, es hat ihn woanders installiert, aber das alte nicht gelöscht?
