Open Closed

Permission not granted sometimes on specified language after upgraded to ver 9.2.0 #9505


User avatar
0
trendline created
  • Exception message and full stack trace: Navigation menu does not appear on specified language setting
  • Steps to reproduce the issue:
    • 1 login with an account, back to the web
    • 2 the navigation menus doesn't appear
    • 3 if access the url directly then it will jump to the account login page let you login again
    • 4 if change the language to another one, the navigation appears, if changed the language back the navigation menu disappeared again
    • 5 if waiting for a moments(about 10 minutes around), the navigation menu may be appears

I have tried restart the application and the server, cleared the redis server cache, it cannot resolve it. I have 3 languages configured, english, zh-hant, zh-hans, the issue occurred on zh-hans.


2 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • This issue is likely related to missing or misconfigured localization resources for the zh-hans language, which can cause permission checks or menu rendering to fail in ABP's navigation system. When a required localization key or permission display name is missing for a specific language, ABP may not render the related menu items, or permission checks may not work as expected.

    • To resolve this:

      1. Ensure that all required localization files (e.g., zh-Hans.json) exist for every module and contain all necessary keys, especially for permissions and menu items.
      2. Check that the language code in your configuration matches the file names and the culture property inside the JSON files.
      3. If you are using the Language Management module, verify that the zh-hans language is enabled and properly configured.
      4. Clear the application cache (including distributed cache like Redis) after updating localization files.
      5. Restart the application after making changes.
    • If the problem persists, check for any custom permission providers or menu contributors that may have language-specific logic or missing translations.

    • For more details, see:

      • https://docs.abp.io/en/abp/latest/Localization#localization-resources
      • https://docs.abp.io/en/abp/latest/Modules/Language-Management

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    trendline created

    solved

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 09, 2025, 06:20