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

Root category and store IDs are hard-coded and can be incorrect #11

Closed
diamondavocado opened this issue Jun 8, 2020 · 1 comment
Closed

Comments

@diamondavocado
Copy link

The root category ID is hard-coded as 2 which results in a site-breaking exception for my store:

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 2

These IDs should not be hard-coded as they will not be the same for all Magento installs, especially if data migration tool has been used.

Same for store ID.

@benvansteenbergen
Copy link
Contributor

He @diamondavocado,

Ill fix that in the next version. Thanks for your feedback and sorry for the late response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants