Skip to content

magento man

How to fix issue when run Magento update command?

I changed php version and composer version.But run command “bin/magento setup:upgrade”, display error like this. SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘584362’ for key ‘PRIMARY’, query was: ALTER TABLE `catalog_url_rewrite_product_category` ADD CONSTRAINT PRIMARY KEY (`url_rewrite_id`)

Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 0 when loading trying to view the site

I am getting this error when I am trying to view the my local website. 1 exception(s): Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 0 Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 0 <pre>#1 MagentoCatalogModelCategoryRepository->get() called… Read More »Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 0 when loading trying to view the site