Update Shopware 5 Plugin Paypal von 3.2.0 -> 4.1.4

Hallo Zusammen,

seit kurzem haben wir ein Problem beim Update von PayPal Plugin von 3.2.0 auf die aktuelle Version. Nach dem Update funktioniert der Shop und das Backend nicht mehr.

Im Log haben wir folgende Fehlermeldungen vermerkt:
[[object] (Monolog\DateTimeImmutable: „2022-05-31T07:52:53.284835+02:00“)] core.ERROR: RuntimeException: Directory „/home/jkedeujx/www.j-kesselshop.de/var/cache/production_202205100627/proxies/“ was not created in /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Hook/ProxyFactory.php:115 Stack trace: #0 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Hook/HookManager.php(142): Enlight_Hook_ProxyFactory->getProxy() #1 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/Model/ProxyAwareRepositoryFactory.php(89): Enlight_Hook_HookManager->getProxy() #2 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/Model/ProxyAwareRepositoryFactory.php(68): Shopware\Components\Model\ProxyAwareRepositoryFactory->createRepository() #3 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(785): Shopware\Components\Model\ProxyAwareRepositoryFactory->getRepository() #4 /home/jkedeujx/www.j-kesselshop.de/custom/plugins/SwagPaymentPayPalUnified/Components/Services/SettingsService.php(73): Doctrine\ORM\EntityManager->getRepository() #5 /home/jkedeujx/www.j-kesselshop.de/custom/plugins/SwagPaymentPayPalUnified/Subscriber/ExpressCheckout.php(145): SwagPaymentPayPalUnified\Components\Services\SettingsService->getSettings() #6 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Event/Handler/Default.php(90): SwagPaymentPayPalUnified\Subscriber\ExpressCheckout->addExpressCheckoutButtonCart() #7 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute() #8 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Controller/Action.php(206): Enlight_Event_EventManager->notify() #9 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch() #10 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Controller/Front.php(225): Enlight_Controller_Dispatcher_Default->dispatch() #11 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Kernel.php(197): Enlight_Controller_Front->dispatch() #12 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle() #13 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() #14 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() #15 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward() #16 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() #17 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/HttpCache/AppCache.php(192): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() #18 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup() #19 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() #20 /home/jkedeujx/www.j-kesselshop.de/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() #21 {main} {„uid“:„fe3585b“}
[[object] (Monolog\DateTimeImmutable: „2022-05-31T08:05:34.089454+02:00“)] core.ERROR: ReflectionException: Property SwagPaymentPayPalUnified\Models\Settings\General::$logLevel does not exist in /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/persistence/lib/Doctrine/Persistence/Mapping/RuntimeReflectionService.php:88 Stack trace: #0 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/persistence/lib/Doctrine/Persistence/Mapping/RuntimeReflectionService.php(88): ReflectionProperty->__construct() #1 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(3845): Doctrine\Persistence\Mapping\RuntimeReflectionService->getAccessibleProperty() #2 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1069): Doctrine\ORM\Mapping\ClassMetadataInfo->getAccessibleProperty() #3 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(708): Doctrine\ORM\Mapping\ClassMetadataInfo->wakeupReflection() #4 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/persistence/lib/Doctrine/Persistence/Mapping/AbstractClassMetadataFactory.php(249): Doctrine\ORM\Mapping\ClassMetadataFactory->wakeupReflection() #5 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(307): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor() #6 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/Model/ProxyAwareRepositoryFactory.php(62): Doctrine\ORM\EntityManager->getClassMetadata() #7 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(785): Shopware\Components\Model\ProxyAwareRepositoryFactory->getRepository() #8 /home/jkedeujx/www.j-kesselshop.de/custom/plugins/SwagPaymentPayPalUnified/Components/Services/SettingsService.php(103): Doctrine\ORM\EntityManager->getRepository() #9 /home/jkedeujx/www.j-kesselshop.de/custom/plugins/SwagPaymentPayPalUnified/Subscriber/ExpressCheckout.php(101): SwagPaymentPayPalUnified\Components\Services\SettingsService->getSettings() #10 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Event/Handler/Default.php(90): SwagPaymentPayPalUnified\Subscriber\ExpressCheckout->addExpressCheckoutButtonCart() #11 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute() #12 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Controller/Action.php(206): Enlight_Event_EventManager->notify() #13 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch() #14 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Controller/Front.php(225): Enlight_Controller_Dispatcher_Default->dispatch() #15 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Kernel.php(197): Enlight_Controller_Front->dispatch() #16 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle() #17 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() #18 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() #19 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward() #20 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() #21 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/HttpCache/AppCache.php(192): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() #22 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup() #23 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() #24 /home/jkedeujx/www.j-kesselshop.de/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() #25 {main} {„uid“:„ec83e40“}
[[object] (Monolog\DateTimeImmutable: „2022-05-31T08:05:35.018931+02:00“)] core.ERROR: ReflectionException: Property SwagPaymentPayPalUnified\Models\Settings\General::$logLevel does not exist in /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/persistence/lib/Doctrine/Persistence/Mapping/RuntimeReflectionService.php:88 Stack trace: #0 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/persistence/lib/Doctrine/Persistence/Mapping/RuntimeReflectionService.php(88): ReflectionProperty->__construct() #1 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(3845): Doctrine\Persistence\Mapping\RuntimeReflectionService->getAccessibleProperty() #2 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1069): Doctrine\ORM\Mapping\ClassMetadataInfo->getAccessibleProperty() #3 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(708): Doctrine\ORM\Mapping\ClassMetadataInfo->wakeupReflection() #4 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/persistence/lib/Doctrine/Persistence/Mapping/AbstractClassMetadataFactory.php(249): Doctrine\ORM\Mapping\ClassMetadataFactory->wakeupReflection() #5 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(307): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor() #6 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/Model/ProxyAwareRepositoryFactory.php(62): Doctrine\ORM\EntityManager->getClassMetadata() #7 /home/jkedeujx/www.j-kesselshop.de/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(785): Shopware\Components\Model\ProxyAwareRepositoryFactory->getRepository() #8 /home/jkedeujx/www.j-kesselshop.de/custom/plugins/SwagPaymentPayPalUnified/Components/Services/SettingsService.php(103): Doctrine\ORM\EntityManager->getRepository() #9 /home/jkedeujx/www.j-kesselshop.de/custom/plugins/SwagPaymentPayPalUnified/Subscriber/ExpressCheckout.php(101): SwagPaymentPayPalUnified\Components\Services\SettingsService->getSettings() #10 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Event/Handler/Default.php(90): SwagPaymentPayPalUnified\Subscriber\ExpressCheckout->addExpressCheckoutButtonCart() #11 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute() #12 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Controller/Action.php(206): Enlight_Event_EventManager->notify() #13 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch() #14 /home/jkedeujx/www.j-kesselshop.de/engine/Library/Enlight/Controller/Front.php(225): Enlight_Controller_Dispatcher_Default->dispatch() #15 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Kernel.php(197): Enlight_Controller_Front->dispatch() #16 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle() #17 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() #18 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() #19 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward() #20 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() #21 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/HttpCache/AppCache.php(192): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() #22 /home/jkedeujx/www.j-kesselshop.de/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup() #23 /home/jkedeujx/www.j-kesselshop.de/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() #24 /home/jkedeujx/www.j-kesselshop.de/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() #25 {main} {„uid“:„1690842“}

Auf einem Testsystem von Uns läuft das Update einwandfrei durch. Shopware Version ist aktuell 5.7.11.

Hat jemand so was schon mal gehabt? woran kann das evtl. liegen?

Hallo @ab1

hast du den Cache geleert nach dem Update?

Viele Grüße aus Schöppingen
Michael Telgmann

Hallo Michael,

ja der Cache wurde mehrfach gelehrt, sogar über die Console mit der clear_cache.sh, und trotzdem ist der Shop nach dem Update tot. Nach dem man das alte Plugin 3.2.0 wieder zurücksetzt läuft es wieder.

Gruß.

Hallo ab1,
wir haben das gleiche Problem. Hast du es lösen können?

LG

Hallo,

das Problem lag an den Servereinstellungen vom Hoster, welche das sind wissen wir nicht. Nach dem wir den Hoster gewechselt haben, ging das Update problemlos.

LG

Danke für die Info.
kannst du auch sagen, warum es in der Testumgebung funktionierte und in der Liveumgebung nicht?
Ist bei uns nämlich genau so.

Danke und LG

Hallo,

die Testumgebung war auf unserem internen Server aufgebaut. Da hatten wir auch leicht abweichende Konfiguration. Wir nutzen den PHP-FPM mit OP Cache und keine Redis Caches. Auf dem Live Server hatten wir keine große Möglichkeiten direkt in die Konfiguration einsehen oder diese auch anzupassen. Unsere Vermutung ist das die Konfiguration von OP-Cache und/oder Redis Caches da mit beigetragen hat das der Update fehlschlug. Das war auch die Vermutung vom Shopware Support, das an der Stelle Konfiguration von PHP nicht ganz korrekt ist.

LG