Magento – There was a category move error

magento2

We have been having problem moving Magento 2 category. When we try to re-arrange/ move a category we get the error, "There was a category move error." We have increased PHP execution time out and reindexed Magento 2, but still these didn't help.

Any assistance would be much appreciated. Thanks in advance!

Best Answer

i had the same problem and i successfully could solve it but i am not sure that it is the correct solution. let's go to the solution ...

first of all i explain the problem first: imagine i have 1 main category and it has 6 sub-category and i want to move one of the sub-category to out of the sub-category so it become another main category.

enter image description here

solution : find the sub-category's ID and the main category's ID that you want to move the sub-category under it. then open the PHPMyAdmin(OR what ever Your DataBase Administration tool is) section and go the related Database and go to the "catalog_category_entity" Table.

enter image description here

find the sub-category's ID in the "entity_id" column and change the "parent_id" column's value to to the main category's ID that u want to move the sub-category to it.

enter image description here

save the table and drag and drop it again. that's it.

enter image description here

final result ;-)

enter image description here

if it doesn't work for u just let me know, so i can help u.

Related Topic