magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.37k stars 9.28k forks source link

Upgrade to Magento 2.4.7 error in module-payment-services-base #38849

Open mahesh-makwana-web-vision opened 2 weeks ago

mahesh-makwana-web-vision commented 2 weeks ago

Preconditions and environment

Steps to reproduce

Every time I try to access to payment method configuration (Stores -> Configuration -> Sales -> Payment Methods):

Error : {"0":"Warning: Undefined array key \"children\" in \/var\/www\/vhosts\/releases\/55\/vendor\/magento\/module-payment-services-base\/Plugin\/MovePaymentMethods.php on line 66","1":"#1}

Expected result

The page should be visible without any errors.

I found a useful solution at this link: Upgrade to Magento 2.4.7 - Error in Module Payment Services Base.

Is this the correct way to create a patch for it?

Actual result

Page showing Error. Screenshot 2024-06-20 at 10 41 28

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 2 weeks ago

Hi @mahesh-makwana-web-vision. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

mahesh-makwana-web-vision commented 2 weeks ago

@magento I am working on this

m2-assistant[bot] commented 2 weeks ago

Hi @mahesh-makwana-web-vision! :wave: Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

mahesh-makwana-web-vision commented 2 weeks ago

@magento add to contributors team

m2-assistant[bot] commented 2 weeks ago

Hi @mahesh-makwana-web-vision! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and add your comment one more time.

mahesh-makwana-web-vision commented 2 weeks ago

@magento I am working on this

m2-assistant[bot] commented 2 weeks ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


OvalMedia commented 2 weeks ago

As a workaround you can disable the plugin from a custom module. etc/adminhtml/di.xml:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Paypal\Model\Config\Structure\PaymentSectionModifier">
        <plugin name="move_express_checkout_us_to_other_paypal_payment_solutions" disabled="true"/>
    </type>
</config>
simonmaass commented 1 week ago

we also just upgraded and have the same problem!

engcom-Dash commented 1 week ago

Hi @mahesh-makwana-web-vision

Thanks for reporting and collaboration.

Verified the issue on Magento 2.4 dev instance and the issue is not reproducible.

Steps to reproduce:

  1. Upgrade from Magento 2.4.6 to 2.4.7
  2. try to access to payment method configuration (Stores -> Configuration -> Sales -> Payment Methods)

We are not seeing any errors and are able to access the payment methods

Please refer the screenshots and let us know if we missed anything.

Before upgrading to 2.4.7

38849_1

After upgrading to 2.4.7

38849_2

Able to access payment methods without any errors

38849_3
kartikmaniyar commented 1 week ago

@engcom-Dash Please select the Merchant Country as Germanyand you can replicate the issue.

engcom-Dash commented 1 week ago

Hi @mahesh-makwana-web-vision

Thanks for reporting and collaboration.

Verified the issue on Magento 2.4 dev instance and the issue is reproducible.

When the merchant country is "Germany" and the user tries to open payment methods then the user is getting the below error :

Exception #0 (Exception): Warning: Undefined array key "children" in /usr/local/var/www/magento246ce/magento246ce/vendor/magento/module-payment-services-base/Plugin/MovePaymentMethods.php on line 66

Steps to reproduce:

  1. Upgrade from Magento 2.4.6 to 2.4.7.
  2. Select merchant country as "Germany"
  3. Try to access to payment method configuration (Stores -> Configuration -> Sales -> Payment Methods)

Please refer the attached screenshot.

Screenshot 2024-06-27 at 12 45 04 PM
github-jira-sync-bot commented 1 week ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12304 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 week ago

:white_check_mark: Confirmed by @engcom-Dash. Thank you for verifying the issue.
Issue Available: @engcom-Dash, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

mahesh-makwana-web-vision commented 1 week ago

@magento I am working on this

github-jira-sync-bot commented 1 week ago

:x: You don't have permission to export this issue.