Това ставало когато се ъпдейтне на joomla 3.7 , 3.72 в някои сайтове.
Пробвах много работи но не стана и започнах наново.
Тези начини уж работели
Install J3.6.5
In phpmyadmin change row with alias="root" to published="0" (= manually break menu)
If you go to frontend then menu should still work as expected.
Update to J3.7 - official channel
Now you see that all menu has been unpublished and you can not publish them.
Go back to point 1 and go forward.
At point 4: Update to J3.7 from channel that @wojsmol mentioned.
5. Now everything should work as expected.
*************************************************
On a test site restore to 3.6.5.
Check menutype of menuitem with id = 276. If menutype = mainmenu proced to 3 else break.
Run this query
UPDATE `#__menu` SET `menutype` = 'main' WHERE `id` = 276;
where #__ is a table prefix
4. Run menu rebuild from backend.
5. Run Joomla! update.
https://issues.joomla.org/tracker/joomla-cms/15938https://github.com/joomla/joomla-cms/pull/15806