1. jjnxpct
  2. RO CSVI
  3. Wednesday, 15 February 2023
  4.  Subscribe via email
Yesterday we had an issue with inmorting menu itmes. (migration J3 -> J4). This was solved and the menu items were migrated OK. But today we saw an error after installing an new extension. (Joomla\CMS\Table\Menu::_getNode(1,id) failed) The extension was installed OK but the was no menu item in the backend. Also rebuilding the menu did not work because of an error.

After some online research I found that the menu root item was missing. I was able to add this in the database using this query:


INSERT INTO `[prefix]_menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`, `publish_up`, `publish_down`) VALUES
(1, '', 'Menu_Item_Root', 'root', '', '', '', '', 1, 0, 0, 0, NULL, NULL, 0, 0, '', 0, '', 0, 93, 0, '*', 0, NULL, NULL);


Could this have been caused by the import of the menu items? Or mabye by the first attempts that had the but (second languae field)? Anyway, just wanted to let you know and maybe this helps out someone else in the future.
Sorry, the discussion is currently locked. You will not be able to post a reply or a comment at the moment.