[GH-ISSUE #885] webmail: internal error when user's language is not English #783

Closed
opened 2026-02-27 11:13:31 +03:00 by kerem · 7 comments
Owner

Originally created by @jficz on GitHub (Jun 5, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/885

When a user changes his lang to non-english (Czech - cs in my case), webmail gives a small "Internal error" (in Czech) bubble on top of the page without any further explanation even with Debug enabled. Server logs (uwsgi logs) only give the request URL and a mention about a 500 error, nothing specific. I was unable to produce any logs or messages beyond this and I only came up with the relation to Language settings via trial-and-error.

So two issues here really: 1) a hard 500 server error on language change and 2) inconclusive error message

Debian Jessie, ngnix 1.10.1 (http2), uwsgi (2.0.7), mysql (Percona 5.7.11), Python 2.7.9, modoboa installed in virtualenv via pip install method.

Modoboa v. 1.5.3, webmail v. 1.0.4

As usual, I'm happy to cooperate in any way I can, being it debugging (if I'm told what to do) or giving any additional information.

Originally created by @jficz on GitHub (Jun 5, 2016). Original GitHub issue: https://github.com/modoboa/modoboa/issues/885 When a user changes his lang to non-english (Czech - cs in my case), webmail gives a small "Internal error" (in Czech) bubble on top of the page without any further explanation even with Debug enabled. Server logs (uwsgi logs) only give the request URL and a mention about a 500 error, nothing specific. I was unable to produce any logs or messages beyond this and I only came up with the relation to Language settings via trial-and-error. So two issues here really: 1) a hard 500 server error on language change and 2) inconclusive error message Debian Jessie, ngnix 1.10.1 (http2), uwsgi (2.0.7), mysql (Percona 5.7.11), Python 2.7.9, modoboa installed in virtualenv via pip install method. Modoboa v. 1.5.3, webmail v. 1.0.4 As usual, I'm happy to cooperate in any way I can, being it debugging (if I'm told what to do) or giving any additional information.
kerem closed this issue 2026-02-27 11:13:31 +03:00
Author
Owner

@tonioo commented on GitHub (Jun 6, 2016):

@cptMikky Since the webmail mostly use async requests to update the page, errors are not showed unless you open a javascript console.

<!-- gh-comment-id:223971961 --> @tonioo commented on GitHub (Jun 6, 2016): @cptMikky Since the webmail mostly use async requests to update the page, errors are not showed unless you open a javascript console.
Author
Owner

@jficz commented on GitHub (Jun 6, 2016):

Now I see this in js console:

jquery.min.js:5 GET https://<mydomain>/webmail/?action=listmailbox&mbox=Sent&reset_page=true&_=1234567890123 500 (Internal Server Error)
send    @   jquery.min.js:5
ajax    @   jquery.min.js:5 
check   @   history.js:272
i   @   jquery.min.js:3

Same for all folders. I was able to create a new folder, it even appears in the folder list but I still can't switch to it - same error.

<!-- gh-comment-id:224024955 --> @jficz commented on GitHub (Jun 6, 2016): Now I see this in js console: ``` jquery.min.js:5 GET https://<mydomain>/webmail/?action=listmailbox&mbox=Sent&reset_page=true&_=1234567890123 500 (Internal Server Error) send @ jquery.min.js:5 ajax @ jquery.min.js:5 check @ history.js:272 i @ jquery.min.js:3 ``` Same for all folders. I was able to create a new folder, it even appears in the folder list but I still can't switch to it - same error.
Author
Owner

@tonioo commented on GitHub (Jun 7, 2016):

Are you sure you're looking at the right tab ? What tool do you use ? With DEBUG = True, you should see a complete python stacktrace.

<!-- gh-comment-id:224193292 --> @tonioo commented on GitHub (Jun 7, 2016): Are you sure you're looking at the right tab ? What tool do you use ? With DEBUG = True, you should see a complete python stacktrace.
Author
Owner

@jficz commented on GitHub (Jun 7, 2016):

What tab are you referring to? I do have DEBUG = True. I use Chromium's integrated JS console. The screen looks like this: https://oc.ghoul.cz/index.php/s/Lzf8FcaBzyra3jO

The error occurs for each mail folder, including the test, which I was able to create despite the error via the cog button.

When I switch back to English, everything is fine. Please note that this is after the update to latest GIT checkout (as per our irc conversation).

<!-- gh-comment-id:224240683 --> @jficz commented on GitHub (Jun 7, 2016): What tab are you referring to? I do have DEBUG = True. I use Chromium's integrated JS console. The screen looks like this: https://oc.ghoul.cz/index.php/s/Lzf8FcaBzyra3jO The error occurs for each mail folder, including the test, which I was able to create despite the error via the cog button. When I switch back to English, everything is fine. Please note that this is after the update to latest GIT checkout (as per our irc conversation).
Author
Owner

@tonioo commented on GitHub (Jun 7, 2016):

Is it the console launched when you hit the F12 key ?
Could you try to display server response instead of the javascript error please ?

<!-- gh-comment-id:224264995 --> @tonioo commented on GitHub (Jun 7, 2016): Is it the console launched when you hit the F12 key ? Could you try to display server response instead of the javascript error please ?
Author
Owner

@jficz commented on GitHub (Jun 7, 2016):

Of course, my mistake, I thought you wanted the javascript errors.

Server response is http://pastebin.com/AtwXYfJ1

<!-- gh-comment-id:224268821 --> @jficz commented on GitHub (Jun 7, 2016): Of course, my mistake, I thought you wanted the javascript errors. Server response is http://pastebin.com/AtwXYfJ1
Author
Owner

@tonioo commented on GitHub (Jun 7, 2016):

Ok, so it corresponds to the issue I fixed yesterday.
https://github.com/modoboa/modoboa-webmail/issues/37

<!-- gh-comment-id:224269213 --> @tonioo commented on GitHub (Jun 7, 2016): Ok, so it corresponds to the issue I fixed yesterday. https://github.com/modoboa/modoboa-webmail/issues/37
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#783
No description provided.