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!