strapi-plugin-navigation icon indicating copy to clipboard operation
strapi-plugin-navigation copied to clipboard

Unable to create another Menu in different locale

Open thewickest opened this issue 1 year ago • 2 comments

I have two situations here.

My Strapi setup has 3 locales (en, fr and ar) the first time that I enter the UI Navigation menu, the third locale does not show up, only en and fr. When I click the button to create another Menu (Manage) it let me creates the Menu but it doesn't show up after this. (the first problem that I have is solved now. The selector does show 3 locales now) imagen

When I look into the DB, I see that the Menu has been created without locale, that's why It doesn't show after the creation in the admin panel. If I modify the DB manually and add the missing locales, it does show up. imagen

Strapi-plugin-navigation: 2.4.0
Strapi: v4.20.1
Node: 18.18.2
NPM: 9.8.1

thewickest avatar Feb 21 '24 11:02 thewickest

Hi @thewickest

We're sorry for your inconvenience.

As a check steps I've to checks.

First on was to delete all navigations. (Simulating first run after plugin enabling). I was unable to detect any issues. Main navigation was created in all available locale version (4 in my case).

Second one was to just add a new navigation. With that I was able to reproduce the issue. I found out the reason and created PR to address it.

So for the first part of your query I'm not able to reproduce this issue one to one. Would re-iterate steps to reproduce it, please?

CodeVoyager avatar Feb 24 '24 08:02 CodeVoyager

I'm having the same issue, 3 locales, one of them doesn't show up (and sometime the one that shows up changes). This plugin is very unstable as I've add other similar issues in multiple project.

RemiKalbe avatar Feb 24 '24 19:02 RemiKalbe

I also have this issue. I'm using 2 locales. When I create a new Navigation, it doesn't show up because the locale_code is null. I have to edit it manually within the database. Then there's also a problem, the locale for that navigation is not created for all locale. It'll only be created if I create another navigation, but then after all menu for all locales generated, the navigations_localizations_links is not correctly linked causing my navigation to have 4 locale if I have 2 navigation that's not generated for all locale (ie. "de, de, en, en").

aftarfadilah avatar Mar 29 '24 14:03 aftarfadilah

Released as part of v2.5.0.

Note that was last major release containing features for Strapi v4.

cyp3rius avatar Apr 18 '24 15:04 cyp3rius