[xwiki-users] Registration Email Error
I'm trying to set up my registration email (the XWiki Instance is running on my localhost) but the problem i'm having is that the when a user registers they recieve the following email: Subject: Validate your account on $wikiname Body: Hello test test, This email address was used to register a new account on ${wikiname}. If you did not make the request, please ignore this message. In order to activate your account, please follow this link: $xwiki.getDocument("XWiki.AccountValidation").getExternalURL("view", "validkey=${validkey}&xwikiname=${xwikiname}") How do I stop the variable names from appearing and get the actual data to display? Thanks -- View this message in context: http://n2.nabble.com/Registration-Email-Error-tp2151197p2151197.html Sent from the XWiki- Users mailing list archive at Nabble.com.
This looks like it is related to your other message. I'd guess that the exceptions you are getting are the reason the variables aren't getting replaced. Just from what you've posted I'd say: I'm trying to set up my registration email (the XWiki Instance is running on my localhost) but the problem i'm having is that the when a user registers they recieve the following email: $xwiki.getDocument("XWiki.AccountValidation") Is returning either a null or nothing, which is causing the NPE in getExternalURL. Now, the question is do you get the error because of permissions or have you maybe not installed something you need for this capability? I'm just hypothesizing as I am extremely new to XWiki myself but I thought I'd reply because it might give you someplace to start looking! Good Luck, .:. Kevin -- View this message in context: http://n2.nabble.com/Registration-Email-Error-tp2151197p2151258.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Thanks for your suggestions, I agree that it looks related to my other problem, the only thing is, I have managed to sort out the other problem (with my watchlists) but this one hasn't been resolved by the fix, I have no idea what could be causing this Kevin_C wrote:
This looks like it is related to your other message. I'd guess that the exceptions you are getting are the reason the variables aren't getting replaced. Just from what you've posted I'd say:
$xwiki.getDocument("XWiki.AccountValidation")
Is returning either a null or nothing, which is causing the NPE in getExternalURL. Now, the question is do you get the error because of permissions or have you maybe not installed something you need for this capability? I'm just hypothesizing as I am extremely new to XWiki myself but I thought I'd reply because it might give you someplace to start looking!
Good Luck, .:. Kevin
-- View this message in context: http://n2.nabble.com/Registration-Email-Error-tp2151197p2157023.html Sent from the XWiki- Users mailing list archive at Nabble.com.
DarthOps wrote:
Thanks for your suggestions, I agree that it looks related to my other problem, the only thing is, I have managed to sort out the other problem (with my watchlists) but this one hasn't been resolved by the fix, I have no idea what could be causing this
Kevin_C wrote:
This looks like it is related to your other message. I'd guess that the exceptions you are getting are the reason the variables aren't getting replaced. Just from what you've posted I'd say:
$xwiki.getDocument("XWiki.AccountValidation")
Is returning either a null or nothing, which is causing the NPE in getExternalURL. Now, the question is do you get the error because of permissions or have you maybe not installed something you need for this capability? I'm just hypothesizing as I am extremely new to XWiki myself but I thought I'd reply because it might give you someplace to start looking!
Indeed, this looks like a permission error. Can guests see that document? (XWiki.AccountValidation) -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
DarthOps wrote:
Thanks for your suggestions, I agree that it looks related to my other problem, the only thing is, I have managed to sort out the other problem (with my watchlists) but this one hasn't been resolved by the fix, I have no idea what could be causing this
Kevin_C wrote:
This looks like it is related to your other message. I'd guess that the exceptions you are getting are the reason the variables aren't getting replaced. Just from what you've posted I'd say:
$xwiki.getDocument("XWiki.AccountValidation")
Is returning either a null or nothing, which is causing the NPE in getExternalURL. Now, the question is do you get the error because of permissions or have you maybe not installed something you need for this capability? I'm just hypothesizing as I am extremely new to XWiki myself but I thought I'd reply because it might give you someplace to start looking!
Indeed, this looks like a permission error. Can guests see that document? (XWiki.AccountValidation)
I've set the XWiki.AccountValidation so that it can be read by the XWikiAllGroup and also the XWikiAdminGroup but it doesn't seem to make any difference, I still get this message when I recieve the email: Subject: Validate your account on $wikiname Hello tom tom, This email address was used to register a new account on ${wikiname}. If you did not make the request, please ignore this message. In order to activate your account, please follow this link: $xwiki.getDocument("XWiki.AccountValidation").getExternalURL("view", "validkey=${validkey}&xwikiname=${xwikiname}") -- View this message in context: http://n2.nabble.com/Registration-Email-Error-tp2151197p2186036.html Sent from the XWiki- Users mailing list archive at Nabble.com.
DarthOps wrote:
I've set the XWiki.AccountValidation so that it can be read by the XWikiAllGroup and also the XWikiAdminGroup but it doesn't seem to make any difference, I still get this message when I recieve the email:
Subject: Validate your account on $wikiname
Hello tom tom,
This email address was used to register a new account on ${wikiname}. If you did not make the request, please ignore this message.
In order to activate your account, please follow this link: $xwiki.getDocument("XWiki.AccountValidation").getExternalURL("view", "validkey=${validkey}&xwikiname=${xwikiname}")
Interestingly I just went into the XWikiPreferences page and selected "Rights" and deselected Prevent unregistered users from viewing pages, regardless of the page or space rights And a registration email now says: Subject: Validate your account on localhost:8080 Hello bab bab, This email address was used to register a new account on localhost:8080. If you did not make the request, please ignore this message. In order to activate your account, please follow this link: $xwiki.getDocument("XWiki.AccountValidation").getExternalURL("view", "validkey=${validkey}&xwikiname=${xwikiname}") It still doesn't give me the link and this isn't ideal because this change means that unregistered users can now view all the pages in the wiki, which defeats the point of registration! -- View this message in context: http://n2.nabble.com/Registration-Email-Error-tp2151197p2186062.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
DarthOps -
Kevin_C -
Sergiu Dumitriu