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

fatal error with new version 3.0.0 #187

Closed
magnolia4 opened this issue Sep 28, 2021 · 8 comments · Fixed by #190
Closed

fatal error with new version 3.0.0 #187

magnolia4 opened this issue Sep 28, 2021 · 8 comments · Fixed by #190
Assignees
Labels
bug Something isn't working

Comments

@magnolia4
Copy link

Shopware: 5.6.8
PHP: 7.3.29
Adyen 3.0.0

When we install the 3.0.0 update, we get a fatal error:

Fatal error: Declaration of Shopware\Components\Log\Handler\ChromePhpHandler::sendHeader($header, $content) must be compatible with Monolog\Handler\ChromePHPHandler::sendHeader(string $header, string $content): void in /engine/Shopware/Components/Log/Handler/ChromePhpHandler.php on line 34

@webtech-tom
Copy link

Same error

Shopware: 5.6.10
PHP: 7.3.29
Adyen 3.0.0

Right after clicking on update.

@ifbidev
Copy link

ifbidev commented Oct 6, 2021

This is caused by malformatted update package.
Delete all the contents of the AdyenPayment Plugin folder on your server.
Just download the files from master branch and upload them into the AdyenPayment Plugin folder.
This fixed it for me.

@webtech-tom
Copy link

Unfortunately I still get a error on the Checkout Page:

Uncaught Error: Class 'Adyen\Service\Checkout' not found in .../custom/plugins/AdyenPayment/Components/Adyen/PaymentMethodService.php:134 Stack trace: #0

@acampos1916
Copy link
Member

Thanks for the suggestion @ifbidev, indeed this is a problem with the package zip file and we're updating it soon. @webtech-tom be aware that after deleting the contents of the package and cloning the master branch you also need to install the package's dependencies https://docs.adyen.com/plugins/shopware-5/?tab=git_hub_3

@acampos1916 acampos1916 self-assigned this Oct 11, 2021
@acampos1916 acampos1916 added the bug Something isn't working label Oct 11, 2021
@ifbidev
Copy link

ifbidev commented Oct 25, 2021

The Bug seems to be, that monolog package is included in vendors folder of the plugin.
This collides with the monolog package of shopware itself.

@ifbidev
Copy link

ifbidev commented Oct 25, 2021

I just removed monolog from AdyenPayment/vendor/ the monolog folder and the references in the composer files.
After this. I was able to use the Plugin successfully.

@ifbidev
Copy link

ifbidev commented Oct 27, 2021

We do have this issue even with the last packages via the Shopware Plugin Manager.

@ghost
Copy link

ghost commented Oct 29, 2021

@ifbidev Can you check the latest version on the marketplace? this should be fixed now? 3.0.2. We will also be releasing our feature branch 3.1.0 on github next week..

@ghost ghost linked a pull request Nov 3, 2021 that will close this issue
@ghost ghost closed this as completed Nov 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants