Nach letzter Aktualisierung Shopware und PayPal wirft PayPal Exceptions.

Hallo *,

PayPal ist jetzt 1.2.0 (PayPal Produkte für Shopware 6 von Shopware AG) und Shopware ist 6.1.3. In Logs sehe ich:

[2020-03-11 21:32:24] request.CRITICAL: Uncaught PHP Exception ArgumentCountError: "Too few arguments to function Swag\PayPal\PayPal\Client\TokenClientFactory::__construct(), 0 passed in /var/www/myshop/shopware/var/cache/prod_hdb96617b5e4be96e32012afc824a5d26/ContainerGvStmNH/srcShopware_Production_KernelProdContainer.php on line 16573 and exactly 1 expected" at /var/www/myshop/shopware/custom/plugins/SwagPayPal/src/PayPal/Client/TokenClientFactory.php line 20 {"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function Swag\\PayPal\\PayPal\\Client\\TokenClientFactory::__construct(), 0 passed in /var/www/myshop/shopware/var/cache/prod_hdb96617b5e4be96e32012afc824a5d26/ContainerGvStmNH/srcShopware_Production_KernelProdContainer.php on line 16573 and exactly 1 expected at /var/www/myshop/shopware/custom/plugins/SwagPayPal/src/PayPal/Client/TokenClientFactory.php:20)"} []

Dann funktionert z.B. Offcanvase-Warenkorb nicht mehr und noch einige Sachen. Sobald ich das Plugin ausschalte läuft alles normal.

Wie kann ich das lösen? Eine frühere Version des Plugins installieren?

 

MfG
Roman

Hallo Roman,

hattest du den Cache gelöscht nach dem Plugin Update?

Viele Grüße aus Schöppingen

cool Michael Telgmann

1 Like

Ich habe heute auf Shopware 6.1.5 und PayPal 1.3.0 aktualisiert. Cache habe ich mehremals zu leeren versucht, die Versuche waren erfolgreich, trotzdem bekomme ich beim aktivierten PayPal 500-Response und das folgende in Production Log:

 

[2020-04-13 13:24:07] php.CRITICAL: Uncaught Error: Failed to create closure from callable: class 'Swag\PayPal\Installment\Banner\InstallmentBannerSubscriber' does not have a method 'addInstallmentBannerFooter' {"exception":"[object] (TypeError(code: 0): Failed to create closure from callable: class 'Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber' does not have a method 'addInstallmentBannerFooter' at /var/www/myshop.de/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:304)"} []
[2020-04-13 13:24:07] request.CRITICAL: Uncaught PHP Exception TypeError: "Failed to create closure from callable: class 'Swag\PayPal\Installment\Banner\InstallmentBannerSubscriber' does not have a method 'addInstallmentBannerFooter'" at /var/www/myshop.de/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php line 304 {"exception":"[object] (TypeError(code: 0): Failed to create closure from callable: class 'Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber' does not have a method 'addInstallmentBannerFooter' at /var/www/myshop.de/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:304)"} []
[2020-04-13 13:24:07] php.CRITICAL: Uncaught Error: Failed to create closure from callable: class 'Swag\PayPal\Installment\Banner\InstallmentBannerSubscriber' does not have a method 'addInstallmentBannerFooter' {"exception":"[object] (TypeError(code: 0): Failed to create closure from callable: class 'Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber' does not have a method 'addInstallmentBannerFooter' at /var/www/myshop.de/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:304)"} []
[2020-04-13 13:24:07] request.CRITICAL: Uncaught PHP Exception TypeError: "Failed to create closure from callable: class 'Swag\PayPal\Installment\Banner\InstallmentBannerSubscriber' does not have a method 'addInstallmentBannerFooter'" at /var/www/myshop.de/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php line 304 {"exception":"[object] (TypeError(code: 0): Failed to create closure from callable: class 'Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber' does not have a method 'addInstallmentBannerFooter' at /var/www/myshop.de/shopware/vendor/symfony/event-dispatcher/EventDispatcher.php:304)"} []