MultiSafepay / magento2

MultiSafepay plugin for Magento 2
Open Software License 3.0
19 stars 8 forks source link

Notice: Undefined index: edencom_categories in vendor/multisafepay/magento2-core/Model/Ui/Giftcard/EdenredGiftcardConfigProvider.php on line 88 #24

Closed mdevrees closed 2 years ago

mdevrees commented 2 years ago

Describe the bug Magento 2.4.3-p1
A magento upgrade with composer require multisafepay/magento2-core resulted in this error. No further configuration, just module install, added a product to cart and try to navigate to cart.

To Reproduce Steps to reproduce the behavior:

  1. Install the module without any config to a magento 2.4.3-p1 instance
  2. Add a product to cart
  3. Navigate to checkout/cart
  4. Error pops up

Expected behavior Cart is shown

Screenshots image (output of module yireo/magento2-whoops)

Desktop (please complete the following information):

Additional context if ($ids = $this->getPaymentConfig($storeId)[$couponCode . '_categories']) { probably does not check for undefined indexes, wrapping it in isset() before defining $ids will do the trick.

vinodsowdagar commented 2 years ago

Hi @mdevrees ,

This issue only happens with the release that was done this morning. We have just released a hotfix that should fix this issue: https://github.com/MultiSafepay/magento2/releases/tag/2.14.1

Could you update the module and try again?

mdevrees commented 2 years ago

Hi @Vinod-MultiSafepay Thanks for the quick reply. The update seems to resolve the issue. Thanks!