-
Notifications
You must be signed in to change notification settings - Fork 24
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
Changing language is not saved #70
Comments
When you restart nodebb it should call createIndices here https://github.com/barisusakli/nodebb-plugin-dbsearch/blob/master/lib/mongo.js#L7-L18, and create that index is that not happening? |
I think it creates the index, but not in |
What do you get when you run |
Result: |
Yeah so it looks like the indexes are not created for that collection. This is what it looks like when it works.
|
You can try manually creating it with.
Once that's done try changing language in acp. |
Ok, that did work. But why did I need this manual step? |
I am not sure, it should happen on nodebb start here check if that line is executed when you restart nodebb, it doesn't get executed if you have jobsDisabled in config for example. |
Well, I dropped the index via mongosh, restarted NodeBB and it created the index again as it should. But there is one difference now, the So I tried it again, but unset the
And the index is not created. |
When I try to change the language in the admin plugin panel, the language is not saved. This seems to happen because an error occurs during reindexing at:
nodebb-plugin-dbsearch/lib/dbsearch.js
Line 619 in 53a1880
It thus never reaches the second line and never saves the language. Though looking at the Mongo process it seems the indexing is continuing and thus working.
The error I get back:
I'm trying to change the language from
english
togerman
.The text was updated successfully, but these errors were encountered: