magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

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

Open mahesh-makwana-web-vision opened this issue 1 year ago • 16 comments

Preconditions and environment

  • Magento version: 2.4.7
  • After upgrading from Magento 2.4.6 to 2.4.7 I receive the following error,

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

  • [X] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [X] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

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:


Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

m2-assistant[bot] avatar Jun 20 '24 08:06 m2-assistant[bot]

@magento I am working on this

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.

m2-assistant[bot] avatar Jun 20 '24 09:06 m2-assistant[bot]

@magento add to contributors team

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.

m2-assistant[bot] avatar Jun 20 '24 09:06 m2-assistant[bot]

@magento I am working on this

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:

    1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    1. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
    1. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

m2-assistant[bot] avatar Jun 20 '24 10:06 m2-assistant[bot]

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>

OvalMedia avatar Jun 20 '24 12:06 OvalMedia

we also just upgraded and have the same problem!

simonmaass avatar Jun 24 '24 09:06 simonmaass

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

engcom-Dash avatar Jun 25 '24 18:06 engcom-Dash

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

kartikmaniyar avatar Jun 26 '24 18:06 kartikmaniyar

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

engcom-Dash avatar Jun 27 '24 07:06 engcom-Dash

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

github-jira-sync-bot avatar Jun 27 '24 07:06 github-jira-sync-bot

: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.

m2-assistant[bot] avatar Jun 27 '24 07:06 m2-assistant[bot]

@magento I am working on this

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

github-jira-sync-bot avatar Jun 27 '24 07:06 github-jira-sync-bot

Seems OK in 2.4.8-beta2

Dnd-Mafer avatar Mar 26 '25 17:03 Dnd-Mafer

Hi @Dnd-Mafer,

Thanks for your Contribution!!.

As the issue seems to be resolved in Latest version.Hence we are closing this issue.

Thanks.

engcom-Bravo avatar Jun 25 '25 10:06 engcom-Bravo