First time here? Check out the FAQ!
1

Comment functionality breaks when disabling email alerts

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?

Edit:

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

while's avatar
23
while
asked 2014-01-15 06:54:40 -0500, updated 2014-01-15 08:51:34 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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) {
//            this._minorEditBox.show();
//        }

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

apg's avatar
167
apg
answered 2014-01-22 11:01:05 -0500, updated 2014-01-22 11:03:49 -0500
edit flag offensive 0 remove flag delete link

Comments

This fixed it for me too

alexsf's avatar alexsf (2014-07-29 13:55:49 -0500) edit
add a comment see more comments