You are already registered and logged in.
Posted: 22 December 2007 06:11 PM   [ Ignore ]
Newbie
Avatar
Rank
Total Posts:  13
Joined  2006-05-07

I’ve made a template with a form to register.
When I register someone, the error I get is:
You are already registered and logged in. I even tested it on another pc and got the same result.
The new member is placed in the database…

This is the situation when no activation by e-mail is required. When I choose activation by e-mail, the result is even worser: After submitting the new member I get a total blank page. The new member is placed in the membersgroup, but doesn’t receive any e-mail.

My form looks like:

{exp:user:register form_name="aanmeldformulier" return="{my_template_group}/index"}
<table>
<
tr><td valign="top">Inlognaam (een woord) </td><td valign="top"><input type="text" name="username" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Voornaam</td><td valign="top"> <input type="text" name="voornaam" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Achternaam </td><td valign="top"><input type="text" name="achternaam" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Organisatie</td><td valign="top"> <input type="text" name="organisatie" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Functie </td><td valign="top"><input type="text" name="functie" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Adres </td><td valign="top"><input type="text" name="adres" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Postcode </td><td valign="top"> <input type="text" name="postcode" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Plaats</td><td valign="top"> <input type="text" name="plaats" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Telefoonnummer</td><td valign="top"> <input type="text" name="telefoon" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Wachtwoord</td><td valign="top"> <input type="password" name="password" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Bevestig wachtwoord</td><td valign="top"> <input type="password" name="password_confirm" value="" maxlength="32" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Email</td><td valign="top"><input type="text" name="email" value="" maxlength="120" class="input" size="40"  /></td></tr>
<
tr><td valign="top">Website</td><td valign="top"><input type="text" name="url" value="" maxlength="100" class="input" size="40"  /></td></tr>
<
tr><td valign="top" colspan="2"> <input type="submit" value="Submit" class="submit" /></td></tr>
</
table>
</
p>
{/exp:user:register} 

Is there a solution for these nasty problems…:)

Profile
 
 
Posted: 31 December 2007 09:06 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

May I take a peek at the registration page? Or a looksie in your CP?

Thanks smile

kelsey AT solspace.com

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 05 January 2008 03:34 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

I’ve been following you post on ExpressionEngine, as well as your emails to me…
Did moving to another server solve all of your issues? smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 06 January 2008 05:26 AM   [ Ignore ]   [ # 3 ]
Newbie
Avatar
Rank
Total Posts:  13
Joined  2006-05-07

Hi Pie Man,

The other problem (crashing IE6.0) is solved. The problem I started on this forum isn’t solved, but isn’t also a problem anymore… I disabled the user-module and build the registrationsystem I wanted with the freeforum-module. So with my knowledge now I didn’t need the user-module. Thanks for your support.

Profile
 
 
Posted: 21 February 2008 04:32 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  32
Joined  2007-03-17

I have also come across this before when building a prototype from a client.

It seems that once you are logged in you cannot visit a page that has the login form on it.

I find it to be really annoying (although EE acts the same way).

Take this use case for example. You have a members index page. Using conditional and segment variables you decide wether the login form should be displayed or another action should be taken.

Heres an example members/index template to illustrate.

{if logged_out}
 {if segment_2 
== "login"}
  {embed
="_forms/.login"}
 {if
:elseif segment_2 == "register"}
  {if segment_3 
== "thanks"}
   
<p>Thanks for registering ... add message about confirmation here</p>
  
{if:else}
   {embed
="_forms/.register"}
  {if}
 {if
:elseif segment_2 == "lost-password"}
  {embed
="_forms/.lost_password"}
 {
/if}
{if
:else}
 {if segment_1 
== "login" && segment_2 == "success"}
  
<p>Welcome back {screen_name}</p>
 
{/if}
{
/if} 

To get around this I have been commenting out the $OUT-> method which allows users to visit the page.

Maybe this could be an option in future versions?

Oh and this module has saved my life before!

 Signature 

Newism - Newcastle Web Design & Development
 
LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator | LG TinyMCE | LG Twitter

More EE Extensions & Modules 20+

Profile
 
 
Posted: 18 May 2008 04:05 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  10
Joined  2008-04-23
Leevi Graham - 21 February 2008 04:32 AM

To get around this I have been commenting out the $OUT-> method which allows users to visit the page.

I’m experiencing this same problem, but I don’t quite understand how to comment out the $OUT-> method.  Can you please explain?

Profile
 
 
Posted: 18 May 2008 04:30 PM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  10
Joined  2008-04-23

okay, i think i figured it out…

on line 3293 of mod.user.php i changed this:

/** ----------------------------------------
  /** Is the current user logged in?
  /** ----------------------------------------*/
  
  
if ( $SESS->userdata('member_id') != )
  

   
return $OUT->show_user_error('general', array($LANG->line('mbr_you_are_registered')));
  

to this:

//** ----------------------------------------
  /** Is the current user logged in?
  /** ----------------------------------------*/
  
  
if ( $SESS->userdata('member_id') != )
  

   
/* return $OUT->show_user_error('general', array($LANG->line('mbr_you_are_registered'))); */
  

is that correct?

Profile
 
 
Posted: 21 May 2008 10:31 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  24
Joined  2007-10-22

I have a similar problem.  I’m allowing a super user to be able to log in and view and edit all users via a front end admin area. That all works fine, but my idea was that the admin user would also be able to manually register new users themselves using this special admin area. Whenever I try this I get this:

The following errors were encountered
  * You are already registered and logged in.

Does anyone know of a way around this? Would Leevi’s suggestion work and if so, is it detailed above correctly?

Thanks

Jim

Profile
 
 
Posted: 22 May 2008 06:21 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

You would probably have to try Leevi’s suggestion as noted above. Give it a whirl and see if it works. smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 22 May 2008 06:25 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  24
Joined  2007-10-22

Yes, it worked! Thanks PieMan

Profile
 
 
Posted: 22 May 2008 06:27 AM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Hahaha, you’re welcome….

But don’t thank me… I didn’t really do anything, haha :D

 Signature 

Check out the new Solspace Blog!

Profile