Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when open some product page in adminhtml #36938

Closed
1 of 5 tasks
salah11172 opened this issue Mar 1, 2023 · 18 comments
Closed
1 of 5 tasks

error when open some product page in adminhtml #36938

salah11172 opened this issue Mar 1, 2023 · 18 comments
Assignees
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.4.4 Indicates original Magento version for the Issue report.

Comments

@salah11172
Copy link

Preconditions and environment

  • Magento version 2.4.4
    php 7.4

Steps to reproduce

open product page in backend

Expected result

expected open product page and view product details

Actual result

TypeError: Argument 1 passed to Magento\Framework\View\Element\UiComponent\DataProvider\Sanitizer::sanitizeComponentMetadata() must be of the type array, null given in /chroot/home/a44febd9/b077da9ab2.nxcli.net/vendor/magento/framework/View/Element/UiComponent/DataProvider/Sanitizer.php:85
Stack trace:
#0 [internal function]: Magento\Framework\View\Element\UiComponent\DataProvider\Sanitizer->sanitizeComponentMetadata(NULL)
#1 /chroot/home/a44febd9/b077da9ab2.nxcli.net/vendor/magento/framework/View/Element/UiComponent/DataProvider/Sanitizer.php(97): array_map(Array, Array)
#2 [internal function]: Magento\Framework\View\Element\UiComponent\DataProvider\Sanitizer->sanitizeComponentMetadata(Array)
#3 /chroot/home/a44febd9/b077da9ab2.nxcli.net/vendor/magento/framework/View/Element/UiComponent/DataProvider/Sanitizer.php(97): array_map(Array, Array)
#4 /chroot/home/a44febd9/b077da9ab2.nxcli.net/vendor/magento/framework/View/Element/UiComponentFactory.php(332): Magento\Framework\View\Element\UiComponent\DataProvider\Sanitizer->sanitizeComponentMetadata(Array)
#5 /chroot/home/a44febd9/b077da9ab2.nxcli.net/vendor/magento/framework/View/Element/UiComponentFactory.php(231): Magento\Framework\View\Element\UiComponentFactory->mergeMetadata('product_form', Array, false)
#6 /chroot/home/a44febd9/b077da9ab2.nxcli.net/vendor/magento/framework/View/Layout/Generator/UiComponent.php(140): Magento\Framework\View\Element\UiComponentFactory->create('product_form', NULL, Array)

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • 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”.
@m2-assistant
Copy link

m2-assistant bot commented Mar 1, 2023

Hi @salah11172. 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.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 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
Copy link

m2-assistant bot commented Mar 1, 2023

Hi @engcom-Lima. 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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. 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!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Bravo engcom-Bravo added the Reported on 2.4.4 Indicates original Magento version for the Issue report. label Mar 1, 2023
@m2-assistant
Copy link

m2-assistant bot commented Mar 1, 2023

Hi @engcom-Bravo. 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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. 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!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@salah11172
Copy link
Author

Screenshot from 2023-03-01 11-07-51

Note: This only happens with recently imported products

@engcom-Bravo
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@devchris79
Copy link

Magento 2.4.4 requires PHP 8.1 not 7.4.

See system requirements here

@engcom-Bravo
Copy link
Contributor

@devchris79 Thanks for your contribution & collaboration over here.

Hi @salah11172,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Steps to reproduce

1.Import the Products.
2.open product page in backend

We are able to edit the product.

Screenshot 2023-03-01 at 3 42 42 PM

Kindly recheck the issue on Magento 2.4-develop instance and check if any 3rd party extensions / modules enabled is causing this issue.

Kindly check your system requirements https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/system-requirements.html.Please let us know if you are still facing any issue.

Thanks.

@engcom-Bravo engcom-Bravo added the Issue: needs update Additional information is require, waiting for response label Mar 1, 2023
@shilpsauce
Copy link

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @shilpsauce. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@salah11172
Copy link
Author

Update
the missing thing cause error in new products imported is Attribute set is Empty

@engcom-Bravo
Copy link
Contributor

engcom-Bravo commented Mar 2, 2023

Hi @salah11172,

Thanks for your update.

Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Steps to reproduce

1.Import the Products.
2.open product page in backend.

We have imported a products with Attribute set is Empty.Below is the CSV file.

catalog_product (9).csv

We are able to open the product page.

Screenshot 2023-03-02 at 2 48 57 PM

Kindly recheck the issue on Magento 2.4-develop instance and check if any 3rd party extensions / modules enabled is causing this issue.

Thanks.

@engcom-Bravo
Copy link
Contributor

Hi @salah11172.

We have noticed that this issue has not been updated for a period of 14 Days.
Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks.

@rahulks16
Copy link

Faced same issue, any update on this ??

@salah11172
Copy link
Author

check Attribute set is empty ?

@bka
Copy link
Contributor

bka commented Aug 17, 2023

Had the same issue today.

TypeError: Magento\Framework\View\Element\UiComponent\DataProvider\Sanitizer::sanitizeComponentMetadata(): Argument #1 ($meta) must be of type array, null given in /var/www/html/www/vendor/magento/framework/View/Element/UiComponent/DataProvider/Sanitizer.php:85

The product was assigned to a non-existing attribute_set. Here is a query you can use to check if your database contains any products with orphaned attribute sets:

SELECT * FROM catalog_product_entity main LEFT JOIN eav_attribute_set s ON main.attribute_set_id = s.attribute_set_id WHERE s.attribute_set_id IS NULL;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.4.4 Indicates original Magento version for the Issue report.
Projects
None yet
Development

No branches or pull requests

7 participants