wallee-payment / shopware-6

Wallee integration for Shopware 6.5 and greater
Apache License 2.0
3 stars 4 forks source link

Call to undefined method isRequestStateApplicable() #22

Open qx54 opened 1 day ago

qx54 commented 1 day ago

Shopware Version: 6.6.2 Wallee extension: 6.1.8

The Shopware log gets filled with the following critical PHP errors and exceptions:

[2024-10-15T08:04:52.359941+00:00] php.CRITICAL: Uncaught Error: Call to undefined method CwbWalleePayment6\Core\Api\WebHooks\Strategy\WebHookPaymentMethodConfigurationStrategy::isRequestStateApplicable() {"exception":"[object] (Error(code: 0): Call to undefined method CwbWalleePayment6\\Core\\Api\\WebHooks\\Strategy\\WebHookPaymentMethodConfigurationStrategy::isRequestStateApplicable() at /home/ploi/www.meinshop.ch/custom/plugins/CwbWalleePayment6/src/Core/Api/WebHooks/Strategy/WebHookStrategyManager.php:110)"} []
[2024-10-15T08:04:52.365451+00:00] php.CRITICAL: Uncaught Error: Call to undefined method CwbWalleePayment6\Core\Api\WebHooks\Strategy\WebHookPaymentMethodConfigurationStrategy::isRequestStateApplicable() {"exception":"[object] (Error(code: 0): Call to undefined method CwbWalleePayment6\\Core\\Api\\WebHooks\\Strategy\\WebHookPaymentMethodConfigurationStrategy::isRequestStateApplicable() at /home/ploi/www.meinshop.ch/custom/plugins/CwbWalleePayment6/src/Core/Api/WebHooks/Strategy/WebHookStrategyManager.php:110)"} []
[2024-10-15T08:04:52.474049+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "isRequestStateApplicable" of class "CwbWalleePayment6\Core\Api\WebHooks\Strategy\WebHookPaymentMethodConfigurationStrategy"." at WebHookStrategyManager.php line 110 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"isRequestStateApplicable\" of class \"CwbWalleePayment6\\Core\\Api\\WebHooks\\Strategy\\WebHookPaymentMethodConfigurationStrategy\". at /home/ploi/www.meinshop.ch/custom/plugins/CwbWalleePayment6/src/Core/Api/WebHooks/Strategy/WebHookStrategyManager.php:110)"} []
[2024-10-15T08:04:52.481429+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "isRequestStateApplicable" of class "CwbWalleePayment6\Core\Api\WebHooks\Strategy\WebHookPaymentMethodConfigurationStrategy"." at WebHookStrategyManager.php line 110 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"isRequestStateApplicable\" of class \"CwbWalleePayment6\\Core\\Api\\WebHooks\\Strategy\\WebHookPaymentMethodConfigurationStrategy\". at /home/ploi/www.meinshop.ch/custom/plugins/CwbWalleePayment6/src/Core/Api/WebHooks/Strategy/WebHookStrategyManager.php:110)"} []

The folder src/Core/Api/WebHooks/Strategy/ and its files was added in release 6.1.8 whereas the release 6.1.7 didn't contain this code. Looks like the error was introduced with that release.

Any chance for a quick fix? Thanks

leanderpfleghard commented 7 hours ago

Hello @qx54

Thank you for your message and for bringing this to our attention. In order to investigate this issue further, we would need more details about your Wallee account and the specific configuration you’re using.

Could you please send an email to info@wallee.com with your wallee account details and include my name in the message? I’ll make sure to review the situation personally and get back to you as soon as possible.

Thank you for your cooperation, and we look forward to resolving this issue for you.

Best regards, Leander from wallee