<p>Solved the mystery. :) The issue was that even though my user fields were not required, there was a numeric 'year' field which had min and max values set, and this was throwing it off (and I had removed that field during my last round of testing to keep things simple). Removing those required min and max values allowed the form to be submitted. Thanks for the help Brad!</p>

CC BY-SA 3.0
2014-09-03T03:16:18.010Z
Ahh... nice catch!
Brad Bell
CC BY-SA 3.0
2014-09-02T23:27:19.467Z
2014-09-02T23:27:19.467Z
Angela
<p>I am using the registration form from the docs here - <a href="https://craftcms.com/docs/templating/user-registration-form" rel="nofollow noreferrer">https://craftcms.com/docs/templating/user-registration-form</a> - in the front end of my site. Unfortunately, when I click on "Register" the page just refreshes and no errors are displayed, and the user is not created.</p>

<p>I have checked the following:</p>

<ul>
<li>"Allow Public Registration?" is checked in the CP.</li>
<li>I made sure that the Snaptcha plugin was disabled (just in case).</li>
</ul>

<p>Any ideas on what I should look for? </p>

<p>Thanks!</p>

<pre><code>&lt;form method="post" action="" accept-charset="UTF-8"&gt;
&lt;input type="hidden" name="action" value="users/saveUser"&gt;
&lt;input type="hidden" name="redirect" value="/success/"&gt;

{% macro errorList(errors) %}
    {% if errors %}
        &lt;ul class="errors"&gt;
            {% for error in errors %}
                &lt;li&gt;{{ error }}&lt;/li&gt;
            {% endfor %}
        &lt;/ul&gt;
    {% endif %}
{% endmacro %}

{% from _self import errorList %}

&lt;label for="username"&gt;Username&lt;/label&gt;
&lt;input id="username" type="text" name="username"
    {%- if account is defined %} value="{{ account.username }}"{% endif -%}&gt;

{% if account is defined %}
    {{ errorList(account.getErrors('username')) }}
{% endif %}

&lt;label for="email"&gt;Email&lt;/label&gt;
&lt;input id="email" type="text" name="email"
    {%- if account is defined %} value="{{ account.email }}"{% endif %}&gt;

{% if account is defined %}
    {{ errorList(account.getErrors('email')) }}
{% endif %}

&lt;label for="password"&gt;Password&lt;/label&gt;
&lt;input id="password" type="password" name="password"&gt;

{% if account is defined %}
    {{ errorList(account.getErrors('password')) }}
{% endif %}

  &lt;div class="divider"&gt;&lt;/div&gt;


&lt;input type="submit" value="Register" class="submit"&gt;
&lt;/form&gt;
</code></pre>

CC BY-SA 3.0
2014-09-02T21:57:17.313Z
Can you check through your craft/storage/runtime/logs files for any [error] or [warning] logs that might be related?
Brad Bell
CC BY-SA 3.0
2014-09-02T22:01:26.250Z
Thanks @BradBell! Yes - I checked that too, although I didn't see anything that looked like a login error. Just an error about status: `FROM `craft_tasks`
WHERE (level = 0) AND (status = :status). Bound with :status='error')
2014/09/02 21:50:09 [profile] [system.db.CDbCommand.query] end:system.db.CDbCommand.query(SELECT count(`id`)` - Could that be related?
Angela
CC BY-SA 3.0
2014-09-02T22:11:57.877Z
That shouldn't matter. Can you share your template code in the original question?
Brad Bell
CC BY-SA 3.0
2014-09-02T22:23:44.010Z
Np! Added the code @BradBell
Angela
CC BY-SA 3.0
2014-09-02T22:41:38.580Z
Hrm... maybe you've got some required fields on your User field layout that the front-end form isn't taking into account?
Brad Bell
CC BY-SA 3.0
2014-09-02T22:51:54.123Z
I thought so too, although I checked and don't have those required. They also still display the "Make Required" option in Field Layout. Do you think it is a permissions issue? Is there a folder I should check permissions for under App? I am on Firehost and have permissions of 755 on the app folders now.
Angela
CC BY-SA 3.0
2014-09-02T23:06:04.507Z
I highly doubt it's permissions related, but I am kind of stumped.  If no one else can offer any ideas, hit us up at support@buildwithcraft.com with your templates and a database back and we can look into it.
Brad Bell
<registration>
Front-end Registration Form just refreshes with no error displayed and user not created
# Front-end Registration Form just refreshes with no error displayed and user not created

(Asked by: username_0 on 2014-09-02)

I am using the registration form from the docs here - https://craftcms.com/docs/templating/user-registration-form - in the front end of my site. Unfortunately, when I click on "Register" the page just refreshes and no errors are displayed, and the user is not created.
I have checked the following:

"Allow Public Registration?" is checked in the CP.
I made sure that the Snaptcha plugin was disabled (just in case).

Any ideas on what I should look for? 
Thanks!




{% macro errorList(errors) %}
    {% if errors %}
        
            {% for error in errors %}
                {{ error }}
            {% endfor %}
        
    {% endif %}
{% endmacro %}

{% from _self import errorList %}

Username


{% if account is defined %}
    {{ errorList(account.getErrors('username')) }}
{% endif %}

Email


{% if account is defined %}
    {{ errorList(account.getErrors('email')) }}
{% endif %}

Password


{% if account is defined %}
    {{ errorList(account.getErrors('password')) }}
{% endif %}

**Tags:** registration

> **Comments:**
> **username_1**: Can you check through your craft/storage/runtime/logs files for any [error] or [warning] logs that might be related?  
> **username_0**: Thanks @BradBell! Yes - I checked that too, although I didn't see anything that looked like a login error. Just an error about status: `FROM `craft_tasks` WHERE (level = 0) AND (status = :status). Bound with :status='error') 2014/09/02 21:50:09 [profile] [system.db.CDbCommand.query] end:system.db.CDbCommand.query(SELECT count(`id`)` - Could that be related?  
> **username_1**: That shouldn't matter. Can you share your template code in the original question?  
> **username_0**: Np! Added the code @BradBell  
> **username_1**: Hrm... maybe you've got some required fields on your User field layout that the front-end form isn't taking into account?  
> **username_0**: I thought so too, although I checked and don't have those required. They also still display the "Make Required" option in Field Layout. Do you think it is a permissions issue? Is there a folder I should check permissions for under App? I am on Firehost and have permissions of 755 on the app folders now.  
> **username_1**: I highly doubt it's permissions related, but I am kind of stumped.  If no one else can offer any ideas, hit us up at support@buildwithcraft.com with your templates and a database back and we can look into it.  

---

## 1 answers

### Answer by username_0 on 2014-09-02. Score: 3 | Accepted answer

Solved the mystery. :) The issue was that even though my user fields were not required, there was a numeric 'year' field which had min and max values set, and this was throwing it off (and I had removed that field during my last round of testing to keep things simple). Removing those required min and max values allowed the form to be submitted. Thanks for the help Brad!

> **Comments:**
> **username_1**: Ahh... nice catch!  

---

