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
Unable to update reader or preferences settings #2937
Comments
We've seen this in the past, but it hasn't been reported by users in quite some time. If you run the |
Hmm it doesn't prompt any toast notification whatsoever when I clicked the button, but upon checking the logs it seems like it indeed ran successfully: But sadly the locale issue still occurs. |
Can you try logging out of Kavita and back in? |
I ran |
Sorry I should have clarified. What I'm trying to see is if you log out then back in again, if you are able to change the Locale and thus any other preferences, as that was your original issue. To my knowledge, this bug crops up from older installs upgrading, where something goes haywire and data on the client doesn't align with what's in the backend (aka locale is missing). I would also ask to clear your browser cache to ensure 100% an older version of UI code isn't playing a part here. |
Ah okay. My bad I should have explained it clearly as well. When I mentioned that it loads as Spamming F5 to refresh was the only way for me to see if the issue still persist as on some refresh it'll randomly loads as Back to your suggestion, before logging out I went to the preference page for a peek and this time it immediately loads as Locale issue aside, what about the Layout Mode issue? |
These 2 issues are related because your locale isn't being set correctly, meaning that when you go to save the preferences, it's not fully constructed. It might be something with your db, but to keep things simple, can you first fill out the user preferences by touching (selecting something else, then back to the original) every control on that page and hitting save? This should ensure everything gets set in the payload. Normally this shouldn't be an issue, but I bet you have some invalid data in one field and thus this issue is blocking you. |
Okay I have flipped every single dropdown list and switches 1 by 1 and save after each change. Nope its still broke on some refreshes. |
Wait when you saved, were you able to persist the settings like you reported with the layout mode? |
Yes the layout mode can be saved in user settings preference page. The error only occurs in the book/manga reader when I choose Even if the default was set to one of the two in the user settings, the only setting that can be saved in the reader is setting it to Update: |
I've noticed the a difference between saving the layout mode in reader vs in preference page. In Reader Settings:
In Preference Page:
|
If you first configure your library in English and then switch to Chinese after the initial installation, you will encounter this problem. This is my guess because I also encountered this problem. |
Nope, it was set to English from the start I did not change it even after a fresh reinstall. I went and switched to another language (French) and see if the issue still occurs after a few refresh, but so far it did not appear yet. I'll update again if it does. I did noticed that some languages do not have any text values for the buttons, I'm not sure if its only occurring on my end. |
What happened?
Reader Settings
This issue occurs 100% of the time for me.
Upon checking the dev tools, the
/api/users/update-preferences
returned400 Bad Request.
The return response below:If its updated in User settings > Preference > Image Reader, it can be updated successfully.
Preferences Settings
This is quite hard to reproduce. It does not occur 100% of the time.
If It loads as "Chinese (Simplified)":
Checking the dev tools again, the
/api/users/update-preferences
returned400 Bad Request
as well. The return response below:What did you expect?
Both settings to be saved successfully.
Kavita Version Number - If you don not see your version number listed, please update Kavita and see if your issue still persists.
0.8.1 - Stable
What operating system is Kavita being hosted from?
Docker (Dockerhub Container)
If the issue is being seen on Desktop, what OS are you running where you see the issue?
Windows
If the issue is being seen in the UI, what browsers are you seeing the problem on?
Firefox, Chrome, Microsoft Edge
If the issue is being seen on Mobile, what OS are you running where you see the issue?
iOS 17.4.1
If the issue is being seen on the Mobile UI, what browsers are you seeing the problem on?
Safari, Chrome
Relevant log output
No response
Additional Notes
The text was updated successfully, but these errors were encountered: