Magento migration issue. Can't edit a product in admin panel Illegal offset type in isset or empty

Magento migration issue. Can't edit a product in admin panel Illegal offset type in isset or empty

The error and the solution of the problem have been obtained as a result of migration from Magento 1 (1.9. *) To Magento 2 (2.3.5-p1), but also can be after updating Magento, for example from version 2.2.7 to version 2.3.2.

Main causes:
  • - Migration from M1 to M2
  • - Update M2

How to reproduce

Go to the admin panel, try to open any product for editing or viewing, you get an error message

Warning: Illegal offset type in isset or empty in /vendor/magento/module-ui/Config/Reader/Definition/Data.php on line 126

How to debug

Open the file vendor/magento/module-ui/Config/Reader/Definition/Data.php line 126

From the description of the function, it is clear that $key - there must be a string, but an array comes

If debugging $key you can see something like ['fieldset', 'fieldset'] (if that I do not use php xdebug, it's a long time :-) )

What's the solution


it works, but don't do it, never :-)

But, you need to do this in order to understand what has changed in the admin panel. After the hotfix, editing the product became possible, but the name of one attribute group became [object] but it must be "Configurable"

Need more information about the data - find the reason. Go to the class below and add logging $data


log -> Debug information

Most likely we have several components - groups with the same code.
Let's open the eav_attribute_group table - it stores information about the groups in which the attributes are stored

Perform a search
Feel free to use our Services

The picture shows that we have 2 groups with the same code

What should be done

Make attribute_group_name unique. I changed configurable -> configurable

The problem is solved!
Other Articles

A Guide to Optimizing Your Magento Store for Peak Performance

Why Does Magento Speed Matter? As an online retailer, the speed of your Magento store is crucial to your success. In today's fast-paced digital world, users have high expectations when it comes to website performance. If your Magento store is slow, it can have a significant impact on user experience

Read more

BigCommerce B2B Edition: A Guide to Scaling Your Online Presence

In today's digital age, moving your business online is no longer an option, but a necessity. However, making that transition can be challenging, especially for B2B businesses. Fortunately, there are platforms like BigCommerce B2B Edition that can help you overcome these challenges and unlock the true potential of your online

Read more

7 Top Magento Payment Gateways in 2024

What is a payment gateway? A payment gateway is an essential component of any e-commerce platform, including Magento. It acts as an intermediary between the customer and the merchant, securely transmitting payment data during online transactions. When a customer makes a purchase on a Magento website, the payment gateway encrypts

Read more
Beyond Code – We Build Experiences: Dive Into a Realm Where Every Line of Code Crafts a Story

We don't just code; we breathe life into your digital aspirations. Our expertise in coding is complemented by our design approach and strategic marketing initiatives, ensuring your brand not only looks good but performs exceptionally.

Begin Your Story