magento2: Unable to view/edit grouped product in admin

Preconditions (*)

  1. Magento EE 2.3.3
  2. PHP 7.2.25

Steps to reproduce (*)

  1. Create a grouped product
  2. Edit grouped product in back end

Expected result (*)

  1. Product edit form is shown

Actual result (*)

  1. The following error appears:
Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\Stdlib\ArrayManager::set() must be of the type array, null given, called in /Users/molovo/projects/bmc/vendor/magento/module-catalog-staging/Ui/DataProvider/Product/Form/Modifier/ScheduleDesignUpdate.php on line 60 and defined in /Users/molovo/projects/bmc/vendor/magento/framework/Stdlib/ArrayManager.php:72 Stack trace: #0 /Users/molovo/projects/bmc/vendor/magento/module-catalog-staging/Ui/DataProvider/Product/Form/Modifier/ScheduleDesignUpdate.php(60): Magento\Framework\Stdlib\ArrayManager->set('data/config/lab...', NULL, 'Design') #1 /Users/molovo/projects/bmc/vendor/magento/module-catalog/Ui/DataProvider/Product/Form/ProductDataProvider.php(73): Magento\CatalogStaging\Ui\DataProvider\Product\Form\Modifier\ScheduleDesignUpdate->modifyMeta(Array) #2 /Users/molovo/projects/bmc/vendor/magento/framework/View/Element/UiComponentFactory.php(316): Magento\Catalog\Ui\DataProvider\Product\Form\ProductDataProvider->getMeta() #3 /Users/molovo/projects/bmc/vend in /Users/molovo/projects/bmc/vendor/magento/framework/Stdlib/ArrayManager.php on line 72

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 28 (12 by maintainers)

Most upvoted comments

I got a similar error:

“TypeError: Argument 2 passed to Magento\Framework\Stdlib\ArrayManager::set() must be of the type array, null given, called in /vendor/magento/module-catalog-staging/Ui/DataProvider/Product/Form/Modifier/ScheduleDesignUpdate.php on line 64”

The problem is, that in the Attribute Set I removed the attributes for Scheduled Design… So I had to add them again.

Hey, I know it has been a long time for this post. But I was facing the same issue and realize the issue was that the attribute_set_id for the catalog_product_entity was incorrect set up. Due a mistake on my script I was insertin with the attribute_set_id as 0, instead 4. You can check the why the issue happens here: \vendor\magento\module-catalog\Ui\DataProvider\Product\Form\Modifier\Eav.php On method getGroups that relies on ATTRIBUTE_SET_ID, and if is 0 it never populate the ‘design’ info for $meta.

@engcom-Echo as I have outlined above, this issue only occurs when creating the product programatically, not when creating it through the admin area.

Hello @molovo @sdzhepa

I am not able to reproduce this issue on the 2.4-develop branch by provided steps. Tested on the both EE(Enterprise) and CE(Open Source) editions.

Testing scenario:

Steps to reproduce:

  1. Create a grouped product
  2. Edit grouped product in back end

Result: Product edit form is shown. No errors. Screenshot_16 Screenshot from 2019-12-18 14-35-42

So I have to close this issue. Thanks for your report!

Hi @molovo, This issue may be related to your customization code or Third-party integration. Thanks.