Fix Null error in Wordpress comment reply with
wordpress-threaded-comments plugin enabled
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
wordpress-thread-comment/wp-thread-comment.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
wordpress.org 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)
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.