Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in connection with B2B component “OrderApproval” #344

Open
mm-mereien opened this issue Jan 17, 2025 · 3 comments
Open

Exception in connection with B2B component “OrderApproval” #344

mm-mereien opened this issue Jan 17, 2025 · 3 comments

Comments

@mm-mereien
Copy link

If an order is canceled in the checkout, you should normally be redirected to the order overview of the account to complete the order/payment there.

Currently, however, only an error message is displayed after redirection / when calling up the page.

The log says the following:

2025-01-07T09:29:50.480187+00:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Shopware\Commercial\B2B\OrderApproval\Storefront\AccountOrderControllerDecorator::__construct(): Argument #1 ($decorated) must be of type Shopware\Storefront\Controller\AccountOrderController, PayonePayment\Storefront\Controller\Account\AccountOrderControllerDecorator given, called in /var/www/html/releases/371/var/cache/prod_h64c00d2eb81c309402e96da585082937/ContainerA469scZ/Shopware_Core_KernelProdContainer.php on line 20116" at AccountOrderControllerDecorator.php line 43 {"exception":"[object] (TypeError(code: 0): Shopware\Commercial\B2B\OrderApproval\Storefront\AccountOrderControllerDecorator::__construct(): Argument #1 ($decorated) must be of type Shopware\Storefront\Controller\AccountOrderController, PayonePayment\Storefront\Controller\Account\AccountOrderControllerDecorator given, called in /var/www/html/releases/371/var/cache/prod_h64c00d2eb81c309402e96da585082937/ContainerA469scZ/Shopware_Core_KernelProdContainer.php on line 20116 at /var/www/html/releases/371/custom/plugins/SwagCommercial/src/B2B/OrderApproval/Storefront/AccountOrderControllerDecorator.php:43)"} []

Steps to reproduction:

  • Go through checkout
  • Select payment method
  • You will be redirected to an external payment page
  • Cancel payment there
  • Only an error message appears under the above link

After uninstalling the Payone plugin, the page can be called up again without errors and the order can be processed

@rommelfreddy
Copy link
Collaborator

Hello @mm-mereien

Did you have installed the latest version of the module?

This bug has been fixed in last version, which has been published yesterday.

@mm-mereien
Copy link
Author

Hallo @rommelfreddy thank you for your reply, we are currently on v6.1.2 and I don't see an update in the Shopware backend yet so I guess the version is not published in the sw store yet, but I will test once I'm able to update

@rommelfreddy
Copy link
Collaborator

my last information is, that the module got not updated in the Shopware Store anymore.
So you have to follow the instruction from https://github.com/PAYONE-GmbH/shopware-6?tab=readme-ov-file#installation (recommend)
or you can download the latest version from here: https://github.com/PAYONE-GmbH/shopware-6/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants