Adyen / adyen-magento2-hyva

MIT License
7 stars 4 forks source link

[ECP-9343]Undefined array key 1 in \/vendor\/magento\/framework\/View\/Layout\/Generator\/Block.php on line 212 #45

Closed kallard1 closed 3 months ago

kallard1 commented 4 months ago

Hello,

Since the installation of the module, we are encountering the following problem when the project is in production mode:

{"message":"Warning: Undefined array key 1 in \/vendor\/magento\/framework\/View\/Layout\/Generator\/Block.php on line 212","code":500}

This URI: magewire/post/livewire/message/... responds correctly with a 200 status if we are in developer mode, but in production mode, it returns a 500 error with the error mentioned above.

To reproduce:

  1. Ensure you are in production mode.
  2. Add a product to the cart.
  3. Trigger any AJAX request (reload shipping method after entering the address, choosing the payment method) and the error appears.

I tested by removing the module, and the problem no longer occurs.

Magento version 2.4.7

Plugin version 1.0.0-rc1

Screenshots Screenshot from 2024-07-11 15-20-16

Desktop (please complete the following information):

khushboo-singhvi commented 4 months ago

Hello @kallard1,

Thank you for bringing this to our attention.

We have created an internal ticket to investigate the scenario you mentioned. Our team is looking into it, and we will provide an update as soon as we have more information.

Thank you for your patience.

Best regards, Khushboo Singhvi

RokPopov commented 3 months ago

Hi @kallard1,

I’ve tested the scenario you described in production mode using the latest official release version 1.0.0. After initiating backend calls on the checkout page (e.g., changing payment method, shipping method, and shipping address), I could not reproduce the issue. It seems this problem was specific to the release candidate version you mentioned.

Please update to the latest version and reach out to support@adyen.com in case you encounter any issues.

Kind regards, Rok