[GH-ISSUE #185] Cannot send attachments if CKeditor is enabled #170

Closed
opened 2026-02-27 11:10:26 +03:00 by kerem · 14 comments
Owner

Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/185

Originally assigned to: @tonioo on GitHub.

Originally created by Antoine Nguyen on 2011-10-14T09:02:16Z

There is a javascript issue when CKeditor is enabled:

Erreur : editorid is not defined
Fichier Source : https://mail.koalabs.org/static/webmail/js/webmail.js
Ligne : 116
Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/185 Originally assigned to: @tonioo on GitHub. **Originally created by Antoine Nguyen on 2011-10-14T09:02:16Z** There is a javascript issue when CKeditor is enabled: <pre> Erreur : editorid is not defined Fichier Source : https://mail.koalabs.org/static/webmail/js/webmail.js Ligne : 116 </pre>
kerem 2026-02-27 11:10:26 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Redmine Admin on 2011-10-21T15:35:12Z

In [c02a59ce254b067a89e09157c9ed7a17f41463a8]:

#!CommitTicketReference repository="" revision="c02a59ce254b067a89e09157c9ed7a17f41463a8"
The issue was more important : it was not possible to send a message at all! (using CKeditor)
fixed #173
<!-- gh-comment-id:29814002 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Redmine Admin on 2011-10-21T15:35:12Z** In [c02a59ce254b067a89e09157c9ed7a17f41463a8]: <pre> #!CommitTicketReference repository="" revision="c02a59ce254b067a89e09157c9ed7a17f41463a8" The issue was more important : it was not possible to send a message at all! (using CKeditor) fixed #173 </pre>
Author
Owner

@gldtn commented on GitHub (Apr 2, 2014):

I ran into this problem on 1.1.1.. is there a fix for this? I can't send a message at all if ckeditor is enabled

<!-- gh-comment-id:39293163 --> @gldtn commented on GitHub (Apr 2, 2014): I ran into this problem on 1.1.1.. is there a fix for this? I can't send a message at all if ckeditor is enabled
Author
Owner

@tonioo commented on GitHub (Apr 2, 2014):

I can't reproduce this issue. Do you have more information? (does firebug say something)

<!-- gh-comment-id:39295695 --> @tonioo commented on GitHub (Apr 2, 2014): I can't reproduce this issue. Do you have more information? (does firebug say something)
Author
Owner

@gldtn commented on GitHub (Apr 2, 2014):

This is what I see on firebug with debug mode on: http://pastie.org/private/45deusbftrn8srs1zedxfa

Also when I click on send:

"NetworkError: 500 INTERNAL SERVER ERROR - https://mail.DOMAIN.org/webmail/?action=compose"
?action=compose

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
...ute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r...

<!-- gh-comment-id:39298155 --> @gldtn commented on GitHub (Apr 2, 2014): This is what I see on firebug with debug mode on: http://pastie.org/private/45deusbftrn8srs1zedxfa Also when I click on send: "NetworkError: 500 INTERNAL SERVER ERROR - https://mail.DOMAIN.org/webmail/?action=compose" ?action=compose SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data ...ute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r...
Author
Owner

@tonioo commented on GitHub (Apr 2, 2014):

What is your lxml version ?

<!-- gh-comment-id:39299144 --> @tonioo commented on GitHub (Apr 2, 2014): What is your lxml version ?
Author
Owner

@gldtn commented on GitHub (Apr 2, 2014):

lxml (3.3.3)

pip list:

argparse (1.1)
chardet (2.2.1)
dj-database-url (0.3.0)
Django (1.5.5)
django-reversion (1.8.0)
factory-boy (2.3.1)
LEPL (5.1.3)
lxml (3.3.3)
modoboa (1.1.1)
MySQL-python (1.2.5)
passlib (1.6.2)
pip (1.5.4)
pycrypto (2.6.1)
rfc6266 (0.0.4)
setuptools (2.2)
sievelib (0.8)
South (0.8.4)
wsgiref (0.1.2)

<!-- gh-comment-id:39299680 --> @gldtn commented on GitHub (Apr 2, 2014): lxml (3.3.3) pip list: argparse (1.1) chardet (2.2.1) dj-database-url (0.3.0) Django (1.5.5) django-reversion (1.8.0) factory-boy (2.3.1) LEPL (5.1.3) lxml (3.3.3) modoboa (1.1.1) MySQL-python (1.2.5) passlib (1.6.2) pip (1.5.4) pycrypto (2.6.1) rfc6266 (0.0.4) setuptools (2.2) sievelib (0.8) South (0.8.4) wsgiref (0.1.2)
Author
Owner

@tonioo commented on GitHub (Apr 2, 2014):

ok, I've never made tests with this version. To confirm my idea, could you try to downgrade lxml ?

<!-- gh-comment-id:39300261 --> @tonioo commented on GitHub (Apr 2, 2014): ok, I've never made tests with this version. To confirm my idea, could you try to downgrade lxml ?
Author
Owner

@gldtn commented on GitHub (Apr 2, 2014):

Any specific version you would prefer? I found this one here: https://pypi.python.org/pypi/lxml/3.2.5

<!-- gh-comment-id:39300759 --> @gldtn commented on GitHub (Apr 2, 2014): Any specific version you would prefer? I found this one here: https://pypi.python.org/pypi/lxml/3.2.5
Author
Owner

@gldtn commented on GitHub (Apr 2, 2014):

I downgraded it to 3.2.5 and the problem still persist

<!-- gh-comment-id:39302357 --> @gldtn commented on GitHub (Apr 2, 2014): I downgraded it to 3.2.5 and the problem still persist
Author
Owner

@gldtn commented on GitHub (Apr 2, 2014):

Also do you think it could be related to nginx/uwsgi ?

/etc/uwsgi/modoboa.ini:

[uwsgi]
master = true
vhost = true
enable-threads = true
socket = /var/uwsgi/modoboa.sock
chdir = /home/modoboa/modovmail
#wsgi-file = /home/modoboa/modovmail/modovmail/wsgi.py
module = modovmail.wsgi:application
plugins = python2
virtualenv = /home/modoboa/venv
#env = DJANGO_SETTINGS_MODULE=modovmail.settings
harakiri = 30
sharedarea = 4
processes = 2
no-default-app = true
uid = modoboa
gid = http
chmod-socket = 660
chown-socket = modoboa:http
logto = /var/log/modoboa.log

<!-- gh-comment-id:39302882 --> @gldtn commented on GitHub (Apr 2, 2014): Also do you think it could be related to nginx/uwsgi ? /etc/uwsgi/modoboa.ini: [uwsgi] master = true vhost = true enable-threads = true socket = /var/uwsgi/modoboa.sock chdir = /home/modoboa/modovmail #wsgi-file = /home/modoboa/modovmail/modovmail/wsgi.py module = modovmail.wsgi:application plugins = python2 virtualenv = /home/modoboa/venv #env = DJANGO_SETTINGS_MODULE=modovmail.settings harakiri = 30 sharedarea = 4 processes = 2 no-default-app = true uid = modoboa gid = http chmod-socket = 660 chown-socket = modoboa:http logto = /var/log/modoboa.log
Author
Owner

@tonioo commented on GitHub (Apr 2, 2014):

I'll try to make a quick fix this afternoon. It seems to be an lxml2/lxml3 compatibility issue but I may be wrong.

<!-- gh-comment-id:39304274 --> @tonioo commented on GitHub (Apr 2, 2014): I'll try to make a quick fix this afternoon. It seems to be an lxml2/lxml3 compatibility issue but I may be wrong.
Author
Owner

@gldtn commented on GitHub (Apr 2, 2014):

Ok, thanks for your prompt reply and help!

<!-- gh-comment-id:39304670 --> @gldtn commented on GitHub (Apr 2, 2014): Ok, thanks for your prompt reply and help!
Author
Owner

@tonioo commented on GitHub (Apr 2, 2014):

I think I solved your issue. Look at #538

<!-- gh-comment-id:39333635 --> @tonioo commented on GitHub (Apr 2, 2014): I think I solved your issue. Look at #538
Author
Owner

@gldtn commented on GitHub (Apr 2, 2014):

Yes, issued solved.. thanks a lot for this ;)

<!-- gh-comment-id:39357661 --> @gldtn commented on GitHub (Apr 2, 2014): Yes, issued solved.. thanks a lot for this ;)
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#170
No description provided.