Fix Null error in WordPress comment reply with wordpress-threaded-comments plugin enabled

Friday, 6th April 2012

I'm running WordPress for already 3 years or so now. Since some very long time. The first wordpress install, I can hardly remember but it something like wordpress 2.5 or wordpress 2.4

Since quite a long time my wordpress blog is powered by a number of plugins, which I regularly update, whenever new plugins pops up …
I haven't noticed most of the time problems during major WordPress platform updates or the update of the installed extensions. However, today while I tried to reply back to one of my blog comments, I've been shocked that, I couldn't.
Pointing at the the Comment Reply box and typing inside was impossible and a null message was stayed filled in the form:

To catch what was causing this weird misbehaving with the reply comments functionality, I grepped through my /var/www/blog/wp-content/plugins/* for the movecfm(null,0,1,null):

# cd /var/www/blog/wp-content/plugins
# grep -rli 'movecfm(null,0,1,null)' */*.php

I've taken the string movecfm(null,0,1,null) from the browser page source in in my Firefox by pressing – Ctrl+U).

Once I knew of the problem, I first tried commenting the occurances of the null fields in wp-thread-comment.php, but as there, were other troubles in commenting this and I was lazy to read the whole code, checked online if some other fellows experienced the same shitty null void javascript error and already someone pointed at a solution. In the few minutes search I was unable to find anyone who reported for this bug, but what I found is some user threads on mentioning since WordPress 2.7+ the wordpress-threaded-comments is obsolete and the functionality provided by the plugin is already provided by default in newer WPinstalls.

Hence in order to enable the threaded comments WordPress (embedded) reply functionality from within the wp-admin panel used:

Settings -> Discussions -> Enable Threaded (nested) comments (Tick)

Enable Nested Comments WordPress default wp comments enable reply functionality screenshot

You see there is also an option to define how many nested comments subcomments, can be placed per comment, the default was 5, but I thought 5 is a bit low so increased it to 10 comments reply possible per comment.

Finally, to prevent the default threaded comments to interfere with the WordPress Threaded Comments plugin, disabled the plugin through menus:

Plugins -> Active -> WordPress Thread Comments (Deactivate)

This solved the weird javascript null "bug" caused by wordpress-threaded-comments once and for all.
Hopefully onwards, my blog readers will not have issues with threaded Reply Comments.

Share this on:

Download PDFDownload PDF

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

One Response to “Fix Null error in WordPress comment reply with wordpress-threaded-comments plugin enabled”

  1. AJ20.5 says:
    Internet Explorer 6.0 Internet Explorer 6.0 Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

    Tak mau! “Tadi ada orang tu kata nak ke tandas?Setelah kereta vios hitam yang dipanduku itu memasuki kawasan segamat, Kamu tak mahu ke balik beraya tahun ni?Berpura-pura terlupa. “Lupa mama nak cakap. Buat pertama kali selepas hampir 10 tahun kami berkawan, Give me the chance to be the man in your life. Aku mengiyakan.“Ya elahh.gitu aja manyun huuuuu…”Rara tertawa manis Tawa khasnya Rara“Ehemmm… ikutan dong seru amet” terdengar suara cowok dibelakang kami Seketika itu kami menoleh bersamaan Ternyata gerombolannya Rey salah satu teman sekolah kami“Kok…diem gag boleh nihhh. Terlalu tinggi wanita itu memujinya sedangkan tidak tidak pernah tahu ‘kebaikan’ apa yang dimilikinya sehingga Puan Adiba begitu berterima kasih. Minum sekali.”Sejak itu, Perlahan-lahan Hananisa menaiki tangga menuju ke pentas.

    View CommentView Comment

Leave a Reply

CommentLuv badge