pimcore / ecommerce-framework-bundle

Ecommerce Framework community bundle provides e-commerce functionality such as product listing and filtering, pricing, carts and checkouts for Pimcore.
https://pimcore.com/docs/platform/Ecommerce_Framework/
Other
8 stars 28 forks source link

[ECOMMERCE] Order Agent fails on setting the PaymentProvider #101

Open davidhoeck opened 6 years ago

davidhoeck commented 6 years ago

Just updated Pimcore from 5.0.2 to 5.2.0. Did some customization to fit the update. Now I get this error in the CommitOrderProcessor ( in my server side callback ). I have no idea why and what is the origin of this error.

[01-Mar-2018 10:55:34 Europe/Vienna] PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function setPaymentProviderMPay24Checkout() on null in /var/www/bts-platform/pimcore/lib/Pimcore/Bundle/EcommerceFrameworkBundle/OrderManager/Order/Agent.php:313
Stack trace:
#0 /var/www/bts-platform/pimcore/lib/Pimcore/Bundle/EcommerceFrameworkBundle/CheckoutManager/CommitOrderProcessor.php(175): Pimcore\Bundle\EcommerceFrameworkBundle\OrderManager\Order\Agent->setPaymentProvider(Object(AppBundle\Ecommerce\Payment\MPay24Checkout))
pimcore/pimcore#1 /var/www/bts-platform/pimcore/lib/Pimcore/Bundle/EcommerceFrameworkBundle/CheckoutManager/CommitOrderProcessor.php(115): Pimcore\Bundle\EcommerceFrameworkBundle\CheckoutManager\CommitOrderProcessor->commitOrderPayment(Object(Pimcore\Bundle\EcommerceFrameworkBundle\PaymentManager\Status), Object(AppBundle\Ecommerce\Payment\MPay24Checko$
pimcore/pimcore#2 /var/www/bts-platform/src/CheckoutBundle/Controller/MPay24Controller.php(172): Pimcore\Bundle\EcommerceFrameworkBundle\CheckoutManager\CommitOrderProcessor->han in /var/www/bts-platform/pimcore/lib/Pimcore/Bundle/EcommerceFrameworkBundle/OrderManager/Order/Agent.php on line 313
fashxp commented 6 years ago

hmm, that is strange ... when I have a look at the line of code where the error occurs, the method that is called should start with 'setAuth_' ... and not 'setPaymentProvider' like the error message suggests?!

can you verify that the code is the same? https://github.com/pimcore/pimcore/blob/master/pimcore/lib/Pimcore/Bundle/EcommerceFrameworkBundle/OrderManager/Order/Agent.php#L313

stale[bot] commented 2 years ago

Thanks a lot for reporting the issue. The issue was not considered by us as "Priority" or "Backlog", so we're not gonna work on that anytime soon. In case this is a bug report, please create a pull request fixing the issue, we'll then review it as soon as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request, we'll then decide whether we'd accept it or not. Thanks for your understanding.