I have started working with magento earlier this year, I am running magento CE 2.2.2

I have noticed that when I go back to edit a product from the catalog I have noticed that the categories are not listed.

I have checked the frontend and item visible in the category, the problem is in the backend, you can see the attachment image below.

Does anyone encounter the problem or know a solution that can be applied?

here you can see the categories I chose during product setup: enter image description here image url

but it is showing like this when I go to edit, which makes it impossible to edit categories: enter image description here image url

  • please try to add category after re-indexing Nov 27, 2018 at 8:42
  • When I tried to add a product to a category, it showed fine but when I click save, it disappeared from the list. but the same thing when I went to the frontend I could see the item fine. Nov 28, 2018 at 12:19
  • 1
    Hi Did you find the solution for this issue. I am also facing the same issue Dec 10, 2018 at 10:27
  • @DalbinShimy no, unfortunately, I could not find a solution. to make it more complicated... I downloaded a backup on my local xampp server, and after running reindex command, everything worked fine. So then I thought that the problem is from the hosting, but my hoster told me that there is nothing wrong... Still not sure about this. Dec 11, 2018 at 11:11
  • Hi Robert. Thanks for the reply. It is working fine in my local but not working in live or dev site. Dec 11, 2018 at 11:58

1 Answer 1


Solution is following sequence of commands:

sudo chmod -R 777 var/ generated/ pub/static/ app/etc/ pub/media/
php bin/magento indexer:reindex
sudo chmod -R 777 var/ generated/ pub/static/ app/etc/ pub/media/
php bin/magento cache:flush

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.