{"id":2255,"date":"2023-08-30T07:30:16","date_gmt":"2023-08-30T07:30:16","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/category-save-error-in-magento\/"},"modified":"2025-05-21T16:48:46","modified_gmt":"2025-05-21T11:18:46","slug":"category-save-error-in-magento","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/category-save-error-in-magento\/","title":{"rendered":"Solved: Category Save Error In Magento"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Have you recently faced any errors while saving any product category from your&nbsp;<a href=\"https:\/\/business.adobe.com\/in\/products\/magento\/magento-commerce.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento<\/a>&nbsp;admin?&nbsp;<em><strong>Did something went wrong while saving the category Magento 2?<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Which might look something like this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then we have found a solution to solve this error.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2023\/07\/Save-category-in-magento.png\" alt=\"Save category in Magento\" class=\"wp-image-32945\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This category&nbsp;<em><strong>save error in Magento<\/strong>&nbsp;<\/em>generally means you cannot create any new category or update an existing one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Various factors cause such an error, but the most common one is the Magento version and the patches in those versions.&nbsp; Here you don\u2019t need to switch to an entire new version, you just need to follow the two steps below to solve this error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution for Category Save Error In Magento<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Head to your patch_list table in your Magento database. Then find and<strong>&nbsp;delete <strong>\u2018Magento\\Catalog\\Setup\\Patch\\Data\\UpdateCustomLayoutAttributes\u2019<\/strong><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Then<strong>&nbsp;run this command php bin\/magento setup:upgrade<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">and that\u2019s it.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you run this command, Magento will check and apply any required changes in the database. The command ensure that the database synchronizes with the code changes and letting the new funcationalites work perfectly within your store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Try out this yourself and I believe you will be able to see the results. You can also\u00a0<a href=\"https:\/\/meetanshi.com\/blog\/programmatically-set-product-position-in-a-category-in-magento-2\/\">set product position in a category programmatically in Magento 2<\/a>\u00a0as the product position value determines the order of products on the category page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&amp;&nbsp; if you found this solution helpful do share with your Magento community!  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you recently faced any errors while saving any product category from your&nbsp;Magento&nbsp;admin?&nbsp;Did something went wrong while saving the category Magento 2? Which might look&#8230;<\/p>\n","protected":false},"author":44,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2255","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/44"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=2255"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2255\/revisions"}],"predecessor-version":[{"id":13835,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2255\/revisions\/13835"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=2255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=2255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=2255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}