Error 4001 when adding comment while not logged in

I have a small set of xwiki pages where I have set it up to allow users to leave comments (with capcha, of course) even if they are not logged in. For logged in users, it works fine. If the user is not logged in, however, I get:

Error number 4001 in 4: Error while evaluating velocity template commentfield.vm

and the root cause seems to be:

Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method ‘put’ in class com.xpn.xwiki.objects.classes.BaseClass threw exception java.lang.NullPointerException at /templates/xpart.vm[line 56, column 39]

I have done “apt-get update ; apt-get upgrade”, reboot, then updated all of the wiki’s I have, etc., and it does no good. Same error, same cause.

If you want to see the error yourself, just go here:

and try to leave a comment.

Any help would be greatly appreciated!

I just noticed today that after having upgraded my xwiki last night, it appeared as though the ability for unregistered users to leave comments had been turned off. I know I turned it on when I created the wiki. At any rate, I turned it back on again and tested, and it works now! Maybe it was fixed and the permission was turned off during the upgrade.