Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throws error when i18n plugin is not installed #54

Closed
pr0gr8mm3r opened this issue Dec 9, 2021 · 2 comments
Closed

Throws error when i18n plugin is not installed #54

pr0gr8mm3r opened this issue Dec 9, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@pr0gr8mm3r
Copy link
Contributor

Bug report

Describe the bug

If I don't have the i18n plugin installed, the sitemap plugin throws the following error when I access the plugin page in the admin panel:

error: Model plugin::i18n.locale not found

Steps to reproduce the behavior

  1. Setup a strapi instance without i18n plugin installed
  2. Navigate to the sitemap settings
  3. See error banner pop up and notice error in console output.

Expected behavior

No error is thrown, missing i18n plugin is ignored.

Even better would be, if the plugin just hid all the i18n-related settings. Just a nice to have.

System

(Shouldn't matter)

  • Node.js version: v14.18.2
  • NPM version: 6.14.15
  • Strapi version: 4.0.0
  • Plugin version: 2.0.0
  • Database: sqlite
  • Operating system: Linux
@boazpoolman boazpoolman added the bug Something isn't working label Dec 9, 2021
@boazpoolman
Copy link
Member

Thanks for the issue submission!
Fixed in v2.0.1

@pr0gr8mm3r
Copy link
Contributor Author

Wow, that was quick. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants