Nach einem Update von 6.4.x auf Version 6.5.8.13 und dem PayPal Plugin auf 8.5 lässt sich Zettel Pos nicht mehr einrichten. Im Frontend erscheint ein Invalid Grant als Fehlermeldung. In den Logs (nachdem diese auf Debug umgestellt wurden) erscheint der Hinweis das es mit dem JWT Token Probleme gibt:
[2024-08-26T17:41:18.750018+00:00] php.INFO: User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cached_reader" service is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 6.4: The \"annotations.cached_reader\" service is deprecated without replacement. at /var/www/share/shopware6/var/cache/prod_hc92e7e574268fbd6c608e6bf8b53d75e/ContainerW6CXP7X/Shopware_Core_KernelProdContainer.php:38600)"} []
[2024-08-26T17:41:18.750208+00:00] php.INFO: User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.reader" service is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 6.4: The \"annotations.reader\" service is deprecated without replacement. at /var/www/share/shopware6/var/cache/prod_hc92e7e574268fbd6c608e6bf8b53d75e/ContainerW6CXP7X/Shopware_Core_KernelProdContainer.php:38614)"} []
[2024-08-26T17:41:18.750580+00:00] php.INFO: User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cache_adapter" service is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/framework-bundle 6.4: The \"annotations.cache_adapter\" service is deprecated without replacement. at /var/www/share/shopware6/var/cache/prod_hc92e7e574268fbd6c608e6bf8b53d75e/ContainerW6CXP7X/Shopware_Core_KernelProdContainer.php:38572)"} []
[2024-08-26T17:41:18.750624+00:00] php.INFO: User Deprecated: Since symfony/serializer 6.4: Passing a "Doctrine\Common\Annotations\PsrCachedReader" instance as argument 1 to "Symfony\Component\Serializer\Mapping\Loader\AttributeLoader::__construct()" is deprecated, pass null or omit the parameter instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/serializer 6.4: Passing a \"Doctrine\\Common\\Annotations\\PsrCachedReader\" instance as argument 1 to \"Symfony\\Component\\Serializer\\Mapping\\Loader\\AttributeLoader::__construct()\" is deprecated, pass null or omit the parameter instead. at /var/www/share/shopware6/vendor/symfony/serializer/Mapping/Loader/AttributeLoader.php:51)"} []
[2024-08-26T17:41:18.772678+00:00] request.INFO: Matched route "api.action.paypal.pos.validate.api.credentials". {"route":"api.action.paypal.pos.validate.api.credentials","route_parameters":{"_route":"api.action.paypal.pos.validate.api.credentials","_routeScope":["api"],"_acl":["sales_channel.editor"],"_controller":"Swag\\PayPal\\Pos\\Setting\\SettingsController::validateApiCredentials"},"request_uri":"https://shop.domain.tld/api/_action/paypal/pos/validate-api-credentials","method":"POST"} []
[2024-08-26T17:41:18.796583+00:00] php.INFO: User Deprecated: Since symfony/validator 6.4: Method "Symfony\Component\Validator\ValidatorBuilder::setDoctrineAnnotationReader()" is deprecated without replacement. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/validator 6.4: Method \"Symfony\\Component\\Validator\\ValidatorBuilder::setDoctrineAnnotationReader()\" is deprecated without replacement. at /var/www/share/shopware6/vendor/symfony/validator/ValidatorBuilder.php:252)"} []
[2024-08-26T17:41:18.946989+00:00] request.ERROR: Uncaught PHP Exception Swag\PayPal\Pos\Api\Exception\PosTokenException: "The error "invalid_grant" occurred with the following message: Invalid JWT assertion" at TokenClient.php line 61 {"exception":"[object] (Swag\\PayPal\\Pos\\Api\\Exception\\PosTokenException(code: 0): The error \"invalid_grant\" occurred with the following message: Invalid JWT assertion at /var/www/share/shopware6/custom/plugins/SwagPayPal/src/Pos/Client/TokenClient.php:61)"} []
[2024-08-26T17:41:18.957386+00:00] php.INFO: User Deprecated: Since symfony/http-kernel 6.2: Setting "terminate_on_cache_hit" to "true" is deprecated and will be changed to "false" in Symfony 7.0. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/http-kernel 6.2: Setting \"terminate_on_cache_hit\" to \"true\" is deprecated and will be changed to \"false\" in Symfony 7.0. at /var/www/share/shopware6/vendor/symfony/http-kernel/HttpCache/HttpCache.php:254)"} []
Das PayPal Plugin wurde einmal runter und wieder drauf gehämmert, aber ohne jegliche Änderung.
Caches wurden geleert.
Vor dem Update wurde der Zettel Saleschannel entfernt, da sich sonst das PayPal Plugin nicht deaktivieren lies und damit der ganze Shop auf die Nase fiel.
Meine Recherche zur Behebung brachte leider keinen Erkentnis und ich frage mich, ob das wer schon sah oder weiß was wo ich anpacken kann.