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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
while's avatar
23
while
asked 11 years ago, updated 11 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
apg's avatar
167
apg
answered 11 years ago, updated 11 years ago
link

Comments

This fixed it for me too

alexsf's avatar alexsf (10 years ago)
see more comments