Problems with registering new user
I know this has already been covered in earlier discussion but I can't seem to get round the "An error occured during the registration process (-1)." for new users. I have read through the postings and the documentation but have had no joy. Is it because we are on the wiki farm? We are at http://ukeig.xwiki.com/ Karen -- Karen Blakeman, UKeiG Management Committee 88 Star Road, Caversham, Berks RG4 5BE, UK Tel: 0118 947 2256 Int. +44 118 947 2256 Mobile: 07764 936733 Int. +44 7764 936733 Fax: 020 8020 0253 Int. +44 20 8020 0253 Mailto:Karen.Blakeman@rba.co.uk http://www.rba.co.uk/
The problem is that XWiki.RegisterNewUser contains a script with a call to protected function. As soon as the page is saved by someone without programming rights, it stops working. You'll have to get someone with programming rights on xwiki.com to re-save the document. I think the functionality of XWiki.RegisterNewUser should be separated from the form so that people can change the presentation without breaking it. It's a really simple change and I think it should be done by default on xwiki.com, since many people seem to fall into this trap. I've done it here: http://soal.xwiki.com/xwiki/bin/view/XWiki/CustomRegisterNewUser That page is simply a cut&paste of the code in on XWiki.RegisterNewUser, except that it does not contain the code for handling the form submission: it submits to XWiki.RegisterNewUser rather than to itself. That way I'm free to change the form as I please without removing programming rights from XWiki.RegisterNewUser, where the protected functions are invoked. Of course I would also need to change my skin so the header points to my custom registration page. Regards, Robin. On 27/10/06, Karen Blakeman <Karen.Blakeman@rba.co.uk> wrote:
I know this has already been covered in earlier discussion but I can't seem to get round the "An error occured during the registration process (-1)." for new users.
I have read through the postings and the documentation but have had no joy.
Is it because we are on the wiki farm? We are at http://ukeig.xwiki.com/
Karen -- Karen Blakeman, UKeiG Management Committee 88 Star Road, Caversham, Berks RG4 5BE, UK Tel: 0118 947 2256 Int. +44 118 947 2256 Mobile: 07764 936733 Int. +44 7764 936733 Fax: 020 8020 0253 Int. +44 20 8020 0253 Mailto:Karen.Blakeman@rba.co.uk http://www.rba.co.uk/
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Many thanks for your help with this Robin. The page has now been re-saved by a 'superadmin' with programming rights at xwiki and is now working. But we are looking at the solution that you suggest as I am sure we are likely to inadvertently fall into the same trap again! Very neat solution, and once again many thanks. Karen Robin Fernandes wrote:
The problem is that XWiki.RegisterNewUser contains a script with a call to protected function. As soon as the page is saved by someone without programming rights, it stops working. You'll have to get someone with programming rights on xwiki.com to re-save the document.
I think the functionality of XWiki.RegisterNewUser should be separated from the form so that people can change the presentation without breaking it. It's a really simple change and I think it should be done by default on xwiki.com, since many people seem to fall into this trap.
I've done it here: http://soal.xwiki.com/xwiki/bin/view/XWiki/CustomRegisterNewUser
That page is simply a cut&paste of the code in on XWiki.RegisterNewUser, except that it does not contain the code for handling the form submission: it submits to XWiki.RegisterNewUser rather than to itself. That way I'm free to change the form as I please without removing programming rights from XWiki.RegisterNewUser, where the protected functions are invoked. Of course I would also need to change my skin so the header points to my custom registration page.
Regards, Robin.
-- Karen Blakeman, UKeiG Management Committee mailto:karen.blakeman@rba.co.uk t: +44 118 947 2256 f: +44 20 8020 0253 m: +44 7764 936733 88 Star Road, Caversham, Berkshire, RG4 5BE
participants (2)
-
Karen Blakeman -
Robin Fernandes