Joomla – Save failed with the following error: Invalid Parent ID

Problem

When saving a new or existing article you receive the following error message

Save failed with the following error: Invalid Parent ID

Joomla-FailedToSave1

The article saves correctly, and is accessible from the front end.

Solution

This issue appears to be caused by corrupted categories, and in my case happened during the migration from Joomla 2.5 to 3.

The solution is to rebuild the menus, categories and replace the category parent item.

How to rebuild the menu items

  1. Click on ‘Menus’ and select the menu item you are going to rebuild – if you have more than two you will need to repeat this process for all menus
  2. Joomla-FailedToSave2
  3. Click on the select all box to select all menu items then click on the ‘Rebuild’ button
  4. Joomla-FailedToSave3
  5. The ‘Successfully rebuilt’ message will confirm the menus have been rebuilt.
  6. Repeat for any other menus you have.

How to rebuild the categories

  1. Click on ‘Content’ and select ‘Category Manager’ from top the menu
  2. Joomla-FailedToSave4
  3. Click on the select all box to select all category items then click on the ‘Rebuild’ button
  4. Joomla-FailedToSave5
  5. The ‘Categories tree data successfully rebuilt’ message will confirm the categories have been rebuilt.

 

How to rebuild the categories

  1. Click on ‘Content’ and select ‘Category Manager’ from top the menu
  2. Click on the ‘New’ button and create a new temporary menu item
  3. Name the temporary menu item ‘temp’
  4. Joomla-FailedToSave7
  5. Use the item count drop down to select ‘All’
  6. Joomla-FailedToSave6
  7. Use the select all box to select all the items, then un-select the temp menu and the parent menu (in this case Main content)
  8. Then click on the ‘Batch’ button
  9. Joomla-FailedToSave8
  10. Under ‘Select Category for Move/Copy’ select the temp menu
  11. Ensure that ‘Move’ is selected then click ‘Process’
  12. Joomla-FailedToSave9
  13. Repeat Steps 7-12, this time moving to the parent menu.
  14. Trash the temp category.

 

Now the problem should be resolved – no more error message, no more corrupted categories.

Was this article helpful?

Related Articles