0

Magento 2.4.5 issue where an Admin user can’t create orders nor reorders for customers.

report.CRITICAL: Error: Call to a member function getMethodInstance() on null in /app/vendor/paypal/module-braintree-core/Block/Form.php:174

1 Answer 1

0

Admin can’t create order/reorder when Braintree payment enabled

Cause

   Incorrect class dependencies (vendor/paypal/module-braintree-core/Block/Form.php)

Solution

Apply the patch provided in this article.

Patch

The patch is attached to this article. To download it, click the following link:

BUNDLE-3137-composer.patch.zip

vendor/paypal/module-braintree-core/Block/Form.php

 public function __construct(
     GatewayConfig $gatewayConfig,
     CcType $ccType,
     LoggerInterface $logger,
    + Data $paymentDataHelper,
     array $data = []
 ) {
     parent::__construct($context, $paymentConfig, $data);
     public function __construct(
        $this->gatewayConfig = $gatewayConfig;
        $this->ccType = $ccType;
        $this->logger = $logger;
       + $this->paymentDataHelper = $paymentDataHelper;
    }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.