Ask Your Question

Comment functionality breaks when disabling email alerts

asked 2014-01-15 06:54:40 -0500

while's avatar

updated 2014-01-15 08:51:34 -0500

The comment functionality suddenly stopped working on mu askbot site. I don't even see any gttp request at the server when I try to add a comment and all I can see is a thin grey line where the comment should have appeared. Is is not visible on the django admin page either. Asking and answering wuestions is still working however.

The site has only been up a short while and it was working initially.

The only changes I know I made were the addition of Mathjax, small settings in the page settings (not related to comments) and I changed to memcached instead of locmem caching. However the problem is still there if I start a development version of the site with locmem caching or if I disable Mathjax.

I don't find any logs or output when trying to add a comment. Is there some way of monitoring the (what I assume to be) Ajax call when comment is added?


This seems to be a bug! The comments stopped working when I disabled email alerts. Once enabled again it works fine.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-22 11:01:05 -0500

apg's avatar

updated 2014-01-22 11:03:49 -0500

The issue indeed was reproduced for me. A quick hack to fix this issue is to comment out the following six lines around 1666 in askbot/media/js/post.js

//        if (this._minorEditBox) {
//            this._minorEditBox.hide();

//        if (this._minorEditBox) {
//  ;
//        }

If you want to turn off email alerts, then minorEditBox is irrelevant and therefore seems to be safe to comment out.

edit flag offensive delete link more


This fixed it for me too

alexsf's avatar alexsf  ( 2014-07-29 13:55:49 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-01-15 06:54:40 -0500

Seen: 215 times

Last updated: Jan 22 '14