Diverse Datenbank Fehler nach Update von 3.5.6 auf 4.0.4

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

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?

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 :frowning: 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 …

welche Version hat dein MySQL?

5.1.66 - ist eine CentOS 6.3 64bit Maschine

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

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}

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!