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.
Accepted Answer Pending Moderation
Hello,
Could this have been caused by the import of the menu items?

Import of menu items do not delete menu root. I read through your previous post on issues on menu import. I had mentioned to clean up earlier imported menu items in my reply. By any chance the menu root was also deleted in this process?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hi! I don't think I deleted items from the database directly, only from the backend. I don't think you can delete the root menu item from the backend?

But maybe I somehow did this myself. I had to repeat the import a few time to get it working. I did check the database using phpMyAdmin to see it any items were imported after some new attempts. So maybe I did delete the root item from phpMyAdmin. Anyway, ti's working now ;-)
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
I don't think you can delete the root menu item from the backend?

You cannot delete menu root from backend. Only possibility to delete it is using PHPMyAdmin.

But maybe I somehow did this myself. I had to repeat the import a few time to get it working. I did check the database using phpMyAdmin to see it any items were imported after some new attempts. So maybe I did delete the root item from phpMyAdmin. Anyway, ti's working now ;-)

Glad to know all is working now.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!