I commented a code in

vendor/magento/module-catalog/Model/CategoryRepository.php file line no. 141

if (!$category->getId()) { throw NoSuchEntityException::singleField('id', $categoryId); }

Now it is working fine.

Please let me know it is the correct way or not or I need to do something else. i think this is not good way. so could any one share me best way to solve this error permanently.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.