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: Uncaught Error: Unsupported operand types in .../engine/Shopware/Plugins/Community/Frontend/MoptPaymentPayone/Subscribers/FrontendAccount.php:70 #127

Closed
AndreasBielmeier opened this issue Sep 28, 2017 · 4 comments
Labels

Comments

@AndreasBielmeier
Copy link

Installed plugin version is 3.6.0, Shopware Version 5.2.27.

I have registered a new account in shopware (completely new, no checkout, no order), then i clicked on my account and payment types, the following error occurs:
Fatal error: Uncaught Error: Unsupported operand types in .../engine/Shopware/Plugins/Community/Frontend/MoptPaymentPayone/Subscribers/FrontendAccount.php:70
Stack trace:
#0 .../engine/Library/Enlight/Event/Handler/Default.php(91): Shopware\Plugins\MoptPaymentPayone\Subscribers\FrontendAccount->onPaymentAction(Object(Enlight_Hook_HookArgs))
#1 .../engine/Library/Enlight/Event/EventManager.php(296): Enlight_Event_Handler_Default->execute(Object(Enlight_Hook_HookArgs))
#2 .../engine/Library/Enlight/Hook/HookManager.php(191): Enlight_Event_EventManager->filter('Shopware_Contro...', NULL, Object(Enlight_Hook_HookArgs))
#3 .../var/cache/production_201707131430/proxies/ShopwareControllersFrontendAccountProxy.php(17): Enlight_Hook_HookManager->executeHooks(Object(Shopware_Proxies_ShopwareControllersFrontendAccountProxy), 'paymentAction', Object(Enlight_Hook_HookArgs))
#4 .../engine/Library/Enlight/Controller/Action.php(159 in .../engine/Shopware/Plugins/Community/Frontend/MoptPaymentPayone/Subscribers/FrontendAccount.php on line 70

I think the line "$subject->View()->sUserData += $paymentData;" has to be within the not empty if.

@fjbender fjbender added the bug label Sep 28, 2017
@fjbender
Copy link
Contributor

I could reproduce this issue. We'll look into that and issue a fix.

Thanks
Florian

@mpathy
Copy link

mpathy commented Oct 2, 2017

We have that too and are only days from going live.. Hope you can fix this soon!

@T-Kuchel
Copy link
Contributor

T-Kuchel commented Oct 2, 2017

Sorry! It is already fixed with #128

@T-Kuchel T-Kuchel closed this as completed Oct 2, 2017
@AndreasBielmeier
Copy link
Author

Thanks a lot. When will be the update available in shopware plugin store?

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

No branches or pull requests

4 participants