ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

custom member registration not working "must be logged in"

November 19, 2012 2:57pm

Subscribe [1]
  • #1 / Nov 19, 2012 2:57pm

    EmilyLimeRed

    44 posts

    So I’m using a form that I’ve used in the past for this site (on an older version of ee) but I’m getting an error and I’m not sure what to do to fix it.

    Whenever the custom member registration form is submitted it returns an ee error page that says “must_be_logged_in”

    I’m not sure why someone would need to be logged in to register.. seems a little backwards actually. Is there some setting that I’m just missing somewhere?

    Here is the code:

    <form id='register_member_form' method="post" action="http://oursite.com/"  >
       <input type="hidden" name="XID" value="{XID_HASH}" />
       <input type="hidden" name="ACT" value="11" />
       <input type="hidden" name="RET" value="http://oursite.com/" />
       <input type="hidden" name="FROM" value="" />
     
     <label>Username</label>
    
       <input class="input-box input" type="text" name="username" value="" maxlength="32" size="25" /></p>
     
       <label>Password</label>
    
       <input class="input-box input" type="password" name="password" value="" maxlength="32" size="25" /></p>
       
       <label>Password again</label>
    
       <input class="input-box input" type="password" name="password_confirm" value="" maxlength="32" size="25" /></p>
       
       <label>Email Address</label>
    
       <input class="input-box input" type="text" name="email" value="" maxlength="120" size="40" /></p>
       
      <label>Your Website</label>
    
       <input class="input-box input" type="text" name="url" value="" maxlength="100" size="25" /></p>
       
       <input type='checkbox' name='accept_terms' value='y'  />
       blahblah
      
     Sorry, but we hate spam!
     
     {captcha}
     
    
     <input class="input-box" type="text" name="captcha" value="" size="20" maxlength="20" />
     
    
       <input type="submit" value="Register" class="submit" /></p>
     </form>

    Thanks in advance!

  • #2 / Nov 21, 2012 12:17pm

    Dan Decker

    7338 posts

    Hi Emily,

    Hmmm… do you have the site set to “Offline” during development? Are you using any custom system message add-ons that may be using restricted templates?

    Anything that might be interceding… there is nothing wrong with your code, so we need to look past that.

    Cheers,

  • #3 / Nov 21, 2012 2:28pm

    EmilyLimeRed

    44 posts

    the site is online (I was testing it live for just that reason), and I don’t think there are any addons that would affect member registration.. I’m using freeform for one form elsewhere on the site but that shouldn’t affect registration (I would think). I also double checked that member registration is allowed.. I’m not sure if there are any other settings that would affect it..

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases