# Diverse Datenbank Fehler nach Update von 3.5.6 auf 4.0.4

**URL:** <https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [11. Dezember 2012 um 13:36 UTC](https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415 "2012-12-11T13:36:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dogado\_shops](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dogado\_shops](https://forum.shopware.com/u/dogado_shops)\
**Post date:** [11. Dezember 2012 um 13:36 UTC](https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415/1 "2012-12-11T13:36:48Z")

</div>

Hallo zusammen, in diversen Shops, welche wir von Shopware 3.5.6 auf 4.0.4 mittels Update Tool aktualisiert haben treten folgende Fehler auf: Einstellungen -\> Storefront -\> Suche Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Could not convert database value “s:375:“ab”;” to Doctrine Type object in Doctrine/DBAL/Types/ConversionException.php on line 46 Stack trace: #0 Doctrine/DBAL/Types/ObjectType.php(48): Doctrine\DBAL\Types\ConversionException::conversionFailed(‘s:375:“ab”;’, ‘object’) #1 Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(266): Doctrine\DBAL\Types\ObjectType-\>convertToPHPValue(‘s:375:“ab”;’, Object(Doctrine\DBAL\Platforms\MySqlPlatform)) #2 Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(83): Doctrine\ORM\Internal\Hydration\AbstractHydrator-\>gatherRowData(Array, Array, Array, Array) #3 Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(69): Doctrine\ORM\Internal\Hydration\ArrayHydrator-\>hydrateRowData(Array, Array, Array) #4 Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(106): Doctrine\ORM\Internal\Hydration\ArrayHydrator-\>hydrateAllData() #5 Doctrine/ORM/AbstractQuery.php(603): Doctrine\ORM\Internal\Hydration\AbstractHydrator-\>hydrateAll(Object(PDOStatement), Object(Doctrine\ORM\Query\ResultSetMapping), Array) #6 Doctrine/ORM/AbstractQuery.php(456): Doctrine\ORM\AbstractQuery-\>execute(Array, 2) #7 Shopware/Controllers/Backend/Config.php(145): Doctrine\ORM\AbstractQuery-\>getOneOrNullResult(2) #8 Enlight/Controller/Action.php(135): Shopware\_Controllers\_Backend\_Config-\>getFormAction() #9 Enlight/Controller/Dispatcher/Default.php(521): Enlight\_Controller\_Action-\>dispatch(‘getFormAction’) #10 Enlight/Controller/Front.php(214): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #11 Shopware/Bootstrap.php(79): Enlight\_Controller\_Front-\>dispatch() #12 Enlight/Application.php(192): Shopware\_Bootstrap-\>run() #13 shopware.php(74): Enlight\_Application-\>run() #14 {main} Einstellungen -\> Storefront -\> Rabatte Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Could not convert database value "s:24:“Zuschlag für …” to Doctrine Type object in Doctrine/DBAL/Types/ConversionException.php on line 46 Stack trace: #0 Doctrine/DBAL/Types/ObjectType.php(48): Doctrine\DBAL\Types\ConversionException::conversionFailed(‘s:24:"Zuschlag …’, ‘object’) #1 Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(266): Doctrine\DBAL\Types\ObjectType-\>convertToPHPValue(‘s:24:"Zuschlag …’, Object(Doctrine\DBAL\Platforms\MySqlPlatform)) #2 Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(83): Doctrine\ORM\Internal\Hydration\AbstractHydrator-\>gatherRowData(Array, Array, Array, Array) #3 Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(69): Doctrine\ORM\Internal\Hydration\ArrayHydrator-\>hydrateRowData(Array, Array, Array) #4 Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(106): Doctrine\ORM\Internal\Hydration\ArrayHydrator-\>hydrateAllData() #5 Doctrine/ORM/AbstractQuery.php(603): Doctrine\ORM\Internal\Hydration\AbstractHydrator-\>hydrateAll(Object(PDOStatement), Object(Doctrine\ORM\Query\ResultSetMapping), Array) #6 Doctrine/ORM/AbstractQuery.php(456): Doctrine\ORM\AbstractQuery-\>execute(Array, 2) #7 Shopware/Controllers/Backend/Config.php(145): Doctrine\ORM\AbstractQuery-\>getOneOrNullResult(2) #8 Enlight/Controller/Action.php(135): Shopware\_Controllers\_Backend\_Config-\>getFormAction() #9 Enlight/Controller/Dispatcher/Default.php(521): Enlight\_Controller\_Action-\>dispatch(‘getFormAction’) #10 Enlight/Controller/Front.php(214): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #11 Shopware/Bootstrap.php(79): Enlight\_Controller\_Front-\>dispatch() #12 Enlight/Application.php(192): Shopware\_Bootstrap-\>run() #13 shopware.php(74): Enlight\_Application-\>run() #14 {main} Einstellungen -\> Storefront -\> SEO/Router Einstellungen Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Could not convert database value "s:52:“www.shopware.d…” to Doctrine Type object in Doctrine/DBAL/Types/ConversionException.php on line 46 Stack trace: #0 Doctrine/DBAL/Types/ObjectType.php(48): Doctrine\DBAL\Types\ConversionException::conversionFailed(‘s:52:"www.shopw…’, ‘object’) #1 Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(266): Doctrine\DBAL\Types\ObjectType-\>convertToPHPValue(‘s:52:"www.shopw…’, Object(Doctrine\DBAL\Platforms\MySqlPlatform)) #2 Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(83): Doctrine\ORM\Internal\Hydration\AbstractHydrator-\>gatherRowData(Array, Array, Array, Array) #3 Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(69): Doctrine\ORM\Internal\Hydration\ArrayHydrator-\>hydrateRowData(Array, Array, Array) #4 Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(106): Doctrine\ORM\Internal\Hydration\ArrayHydrator-\>hydrateAllData() #5 Doctrine/ORM/AbstractQuery.php(603): Doctrine\ORM\Internal\Hydration\AbstractHydrator-\>hydrateAll(Object(PDOStatement), Object(Doctrine\ORM\Query\ResultSetMapping), Array) #6 Doctrine/ORM/AbstractQuery.php(456): Doctrine\ORM\AbstractQuery-\>execute(Array, 2) #7 Shopware/Controllers/Backend/Config.php(145): Doctrine\ORM\AbstractQuery-\>getOneOrNullResult(2) #8 Enlight/Controller/Action.php(135): Shopware\_Controllers\_Backend\_Config-\>getFormAction() #9 Enlight/Controller/Dispatcher/Default.php(521): Enlight\_Controller\_Action-\>dispatch(‘getFormAction’) #10 Enlight/Controller/Front.php(214): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #11 Shopware/Bootstrap.php(79): Enlight\_Controller\_Front-\>dispatch() #12 Enlight/Application.php(192): Shopware\_Bootstrap-\>run() #13 shopware.php(74): Enlight\_Application-\>run() #14 {main} Hat hierzu jemand eine Lösung ? VG AIXPRO

---

<div class="post-metadata">

**Author:** ![leseaw](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@leseaw](https://forum.shopware.com/u/leseaw)\
**Post date:** [11. Dezember 2012 um 14:03 UTC](https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415/2 "2012-12-11T14:03:41Z")

</div>

such doch mal die Zahl „s:375:„ab“;“ in der MySQL DB und schau was da nun drn steht. Da ist wohl was schief gegangen beim Update. ist die Blacklist Und das sollte drin stehen: `s:375:"ab,die,der,und,in,zu,den,das,nicht,von,sie,ist,des,sich,mit,dem,dass,er,es,ein,ich,auf,so,eine,auch,als,an,nach,wie,im,für,einen,um,werden,mehr,zum,aus,ihrem,style,oder,neue,spieler,können,wird,sind,ihre,einem,of,du,sind,einer,über,alle,neuen,bei,durch,kann,hat,nur,noch,zur,gegen,bis,aber,haben,vor,seine,ihren,jetzt,ihr,dir,etc,bzw,nach,deine,the,warum,machen,0,sowie,am";` du hast da anscheinend ein ; anstatt ein , kann das sein?

---

<div class="post-metadata">

**Author:** ![dogado\_shops](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dogado\_shops](https://forum.shopware.com/u/dogado_shops)\
**Post date:** [11. Dezember 2012 um 14:10 UTC](https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415/3 "2012-12-11T14:10:21Z")

</div>

Das habe ich in der Tabelle badwords stehen unter s\_core\_config\_elements - ist aber nur ein exemplarisches Beispiel. Habe die jeweiligen Felder auch mal mit Daten aus einem frischen 4.0.4 Shop gefüllt ohne Erfolg ☹ Je nach Shop geht mal Rabatte nicht, mal Suche und mal SEO. Scheint irgendwie mit Umlauten zu tun gehabt zu haben - wobei Suche und Rabatte auch bei einem migrierten Shop einen Fehler werfen die keine Umlaute hatten …

---

<div class="post-metadata">

**Author:** ![leseaw](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@leseaw](https://forum.shopware.com/u/leseaw)\
**Post date:** [11. Dezember 2012 um 14:13 UTC](https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415/4 "2012-12-11T14:13:43Z")

</div>

welche Version hat dein MySQL?

---

<div class="post-metadata">

**Author:** ![dogado\_shops](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dogado\_shops](https://forum.shopware.com/u/dogado_shops)\
**Post date:** [11. Dezember 2012 um 14:14 UTC](https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415/5 "2012-12-11T14:14:50Z")

</div>

5.1.66 - ist eine CentOS 6.3 64bit Maschine

---

<div class="post-metadata">

**Author:** ![Heiner\_Lohaus](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Heiner\_Lohaus](https://forum.shopware.com/u/Heiner_Lohaus)\
**Post date:** [11. Dezember 2012 um 14:43 UTC](https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415/6 "2012-12-11T14:43:05Z")

</div>

Hi, das Problem sind wohl die Einstellungen, die bei dir aus irgendeinem Grund nicht richtig übernommen werden. Die entscheidenden Update-Queries dafür sind diese: ` ALTER TABLE `backup_s_core_config` CHANGE `value` `value` TEXT CHARACTER SET utf8 COLLATE utf8\_unicode\_ci NOT NULL; TRUNCATE TABLE `s_core_config_values`; -- SELECT e.name, e.value, CONCAT('s:', LENGTH(c.value), ':"', c.value, '";') INSERT INTO `s_core_config_values` (element\_id, shop\_id, value) SELECT e.id, 1, CONCAT('s:', LENGTH(c.value), ':"', c.value, '";') as value FROM backup\_s\_core\_config c, s\_core\_config\_elements e WHERE LOWER(SUBSTR(c.name, 2)) = e.name AND CONCAT('i:', c.value, ';') != e.value AND CONCAT('s:', LENGTH(c.value), ':"', c.value, '";') != e.value AND (e.value != 'b:0;' OR c.value != 0) AND (e.value != 'b:1;' OR c.value != 1) AND e.name NOT IN ('detailtemplates', 'fuzzysearchlastupdate', 'seostaticurls', 'seoqueryalias', 'botBlackList'); ` Kannst du einmal den „SELECT“ ausführen und mitteilen was bei dir rauskommt? Ansonsten kannst du auch einfach mit „TRUNCATE“ die entsprechende Tabelle „s\_core\_config\_values“ leeren und die Einstellungen manuell übernehmen. Heiner

---

<div class="post-metadata">

**Author:** ![dogado\_shops](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dogado\_shops](https://forum.shopware.com/u/dogado_shops)\
**Post date:** [11. Dezember 2012 um 16:26 UTC](https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415/7 "2012-12-11T16:26:49Z")

</div>

Super - Rabatte und Suche funktionieren jetzt - SEO bekomme ich noch folgenden Fehler: Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Could not convert database value "s:52:„www.shopware.d…“ to Doctrine Type object in Doctrine/DBAL/Types/ConversionException.php on line 46 Stack trace: #0 Doctrine/DBAL/Types/ObjectType.php(48): Doctrine\DBAL\Types\ConversionException::conversionFailed(‚s:52:"www.shopw…‘, ‚object‘) #1 Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(266): Doctrine\DBAL\Types\ObjectType-\>convertToPHPValue(‚s:52:"www.shopw…‘, Object(Doctrine\DBAL\Platforms\MySqlPlatform)) #2 Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(83): Doctrine\ORM\Internal\Hydration\AbstractHydrator-\>gatherRowData(Array, Array, Array, Array) #3 Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(69): Doctrine\ORM\Internal\Hydration\ArrayHydrator-\>hydrateRowData(Array, Array, Array) #4 Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(106): Doctrine\ORM\Internal\Hydration\ArrayHydrator-\>hydrateAllData() #5 Doctrine/ORM/AbstractQuery.php(603): Doctrine\ORM\Internal\Hydration\AbstractHydrator-\>hydrateAll(Object(PDOStatement), Object(Doctrine\ORM\Query\ResultSetMapping), Array) #6 Doctrine/ORM/AbstractQuery.php(456): Doctrine\ORM\AbstractQuery-\>execute(Array, 2) #7 Shopware/Controllers/Backend/Config.php(145): Doctrine\ORM\AbstractQuery-\>getOneOrNullResult(2) #8 Enlight/Controller/Action.php(135): Shopware\_Controllers\_Backend\_Config-\>getFormAction() #9 Enlight/Controller/Dispatcher/Default.php(521): Enlight\_Controller\_Action-\>dispatch(‚getFormAction‘) #10 Enlight/Controller/Front.php(214): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #11 Shopware/Bootstrap.php(79): Enlight\_Controller\_Front-\>dispatch() #12 Enlight/Application.php(192): Shopware\_Bootstrap-\>run() #13 shopware.php(74): Enlight\_Application-\>run() #14 {main}

---

<div class="post-metadata">

**Author:** ![ratzinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/ratzinger/32/15949_2.png) [@ratzinger](https://forum.shopware.com/u/ratzinger)\
**Post date:** [11. Dezember 2012 um 18:13 UTC](https://forum.shopware.com/t/diverse-datenbank-fehler-nach-update-von-3-5-6-auf-4-0-4/10415/8 "2012-12-11T18:13:05Z")

</div>

habe ich nach dem update auch gehabt! habe einfach die genannten fehler aus der datenbank gelöscht in der jeweiligen tabelle bis alles wieder funktioniert hat!
