I was deleting the categories that came with a theme I purchased for Magento 2, and adding in my own, but now when I visit the site I get this error:
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 233
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI was deleting the categories that came with a theme I purchased for Magento 2, and adding in my own, but now when I visit the site I get this error:
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 233
My store had a reference to a deleted category in the catalog_category_product_index table. The following SQL solved the issue.
DELETE FROM catalog_category_product_index WHERE category_id = 233;
(substitute the ID from your error at the end)