This question about : Answered

AutoTemplatePlugin - no Registration of users

I installed latest FosWiki and NatSkin.

Problem is, that with the activated ": AutoTemplatePlugin " the registration is not possible anymore.


If it is switched off, the registration is possible, but the auto fill for the user name out of the name and first name entries is not automatically generated?

Any idea, how to solve this?

Thanks Joerg


Hi Joerg, could you provide a bit more details, i.e. a screenshot of the user registration form. Please look out for any javascript error that you see in your browser's console when loading the user registration page as well as when trying to submit the registration. Any details to elaborate "registration is not possible anymore" helps.

-- MichaelDaum - 15 Jul 2013

I am seeing a similar behavior - when AutoTemplatePlugin is enabled the Register button doesn't do anything. When I disable it I get sent to /foswiki/bin/register/Main/WebHome with an error about registering my user TestTest.

in the error log: Registration failed: Failed to add user: at /var/lib/foswiki/lib/Foswiki/Users/TopicUSerMapping.pm line 314

which is odd since I have UserMapping set to LdapUserMapping

-- CarlEastman - 03 Aug 2013

I stopped trying to use registration and just went to NewUser and LdapNG instead - it pulls the data from the ldap server instead of having the user or you recreate it.

-- CarlEastman - 07 Aug 2013

I am having the same issue. Pressing the "Register" button appears to have no action (no vissible error either). Javascript is enabled. To enable new user registration I diabled AutoTemplatePlugin -- working as designed. This is a showstopper problem as I was setting up NatSkin site wide.

-- ScottCarroll - 09 Oct 2013

There's an error in the user registration view template related to the captcha. Try this patch to fix it:

ndex: data/System/UserRegistrationViewTemplate.txt
===================================================================
--- data/System/UserRegistrationViewTemplate.txt        (revision 16893)
+++ data/System/UserRegistrationViewTemplate.txt        (working copy)
@@ -1,4 +1,4 @@
-%META:TOPICINFO{author="BaseUserMapping_999" comment="autosave" date="1356278782" format="1.1" version="1"}%
+%META:TOPICINFO{author="ProjectContributor" comment="autosave" date="1356278782" format="1.1" version="1"}%
 %{<verbatim>}%
 %TMPL:INCLUDE{"view"}%<!-- -->
 %TMPL:INCLUDE{"captcha"}%<!-- -->
@@ -35,13 +35,17 @@
 %TMPL:P{"logindetails"}%
 %TMPL:P{"DIS_extradetails"}%<!-- -->
 %TMPL:P{"groupdetails"}%
-%TMPL:P{context="CaptchaPluginEnabled" then="captcha"}%<!-- -->
+%TMPL:P{context="CaptchaPluginEnabled" then="captchaform"}%<!-- -->
 %TMPL:P{"formend"}%
 %TMPL:P{"formvalidation"}%
 <!-- -->%TMPL:END%
 %{</verbatim>}%
 
 %{<verbatim>}%
+%TMPL:DEF{"captchaform"}%%CAPTCHAFORM%%TMPL:END%
+%{</verbatim>}%
+
+%{<verbatim>}%
 %TMPL:DEF{"formtitle"}%<h1>%MAKETEXT{"Registration"}%</h1>%TMPL:END%
 %{</verbatim>}%

-- MichaelDaum - 09 Oct 2013

Having exact the problem described above. After filled in all fields in the “UserRegistration” cklicking onto the “Register” button show no effect. I copied the patch and overwrite the first paragraph of the “UserRegistrationViewTemplate” again with no effect. It's a new Installation, running Natskin. Any recommendations?

-- JoachimHoppe - 21 Jan 2015

I just gave this a try to replicate this and could not except with CaptchaPlugin enabled. With CaptchaPlugin enabled, I did get js errors and the site menu didn't work. If I disabled CaptchaPlugin, the registration form defined by “UserRegistrationViewTemplate” worked.

-- LynnwoodBrown - 21 Jan 2015

Thanks for the tip but I have not installed the CaptchaPlugin. Hence it has to be something differnt.

-- JoachimHoppe - 22 Jan 2015

The next thing to do to debug this would be to look at the javascript console in your browser. That particular view template does incorporate javascript and some error would derail submission.

The other option here is simply disabling UserRegistrationViewTemplate by editing the list of rules under AutoTemplatePlugin in configure. There's really not that much difference between the default UserRegistration look and the one defined by the special view template. The general look of the page is still consistent with the chosen skin.

-- LynnwoodBrown - 22 Jan 2015

Ok, tried both without luck first, no error in the java console. It seems no code at all is executed when pressing the register button? what we figured out is - registering new user work fine when I'm loged in? Second option didn't show any result at all too. I deleted th whole line from the rules in configure but got the same register page. No idea why Thanks

-- JoachimHoppe - 27 Jan 2015

Ah - your comment about it working fine when you're logged in pricked a memory and I believe I have your solution. Look in configure, under "Security and Authentication" and then under "Login" tab for the {AuthScripts} setting. Remove "rest" from the list of scripts requiring authentication. I just tested this and could duplicate your issue when rest was in this list. After I removed it, the registration form worked fine. BTW, this was using the NatSkin UserRegistrationViewTemplate.

-- LynnwoodBrown - 28 Jan 2015

Hi LynnwoodBrown, thx, removing "rest" from the list of scripts requiring authentication helped for me too!

-- BeatDoebeli - 02 Jun 2015
 

QuestionForm edit

Subject
Extension AutoTemplatePlugin, NatSkin
Version Foswiki 1.1.8
Status Answered
Related Topics
Topic revision: r14 - 03 Jun 2015, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy