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.

Member Login Form return= not working

October 25, 2011 5:36pm

Subscribe [4]
  • #1 / Oct 25, 2011 5:36pm

    icd2k3

    51 posts

    Pretty sure I might just be missing something simple here, but no matter what I set my return param to it just sends me to a blank page that says “you are now logged in” w/o anything else. What might I be missing here?

    {exp:member:login_form return="http://www.google.com"}
    <input type="text" name="username" value="" maxlength="32" size="25"><br>
    <input type="password" name="password" value="" maxlength="32" size="25"><br>
    <input type="submit" name="submit" value="Submit">
    {/exp:member:login_form}
  • #2 / Oct 26, 2011 12:45am

    John Henry Donovan

    12339 posts

    Hi icd2k3,

    What version and build of EE are you using?
    Are you using any addons?

    If you use a standard return does it work?

    {exp:member:login_form return="site/index"}

    Does it literally stay on that page?

  • #3 / Oct 26, 2011 8:35am

    icd2k3

    51 posts

    Thanks John,

    I’m using 2.2.2 and I am using some addons, but none that I think would interfere with the member module. (stuff like Matrix etc). I’m also using htaccess to mask the index.php from the URL.

    The login doesn’t stay on the page, instead it looks like it brings up a blank page with only “You are now logged in” on it. My login page is site.com/login, and when I login the address does change to just site.com, but with no other content other than that message.

  • #4 / Oct 27, 2011 9:55am

    icd2k3

    51 posts

    Any ideas? I suppose I could just use JS to redirect it after the form submission, but strange the default parameter behavior isn’t working.

  • #5 / Oct 27, 2011 6:52pm

    Dan Decker

    7338 posts

    icd2k3,

    Can you share the contents of your .htaccess? I suspect the culprit might be in there. Have you made any changes to the default Member templates? And can you share with us the rendered output of your login template?

    Cheers,

  • #6 / Oct 31, 2011 9:28am

    icd2k3

    51 posts

    Hey Dan, sure - sorry for the late reply

    I haven’t made any changes to the default member templates. As for the rendered output of the login template I’ve attached 2 images showing the login screen and what happens when I click the submit button.

    .htaccess (bit long):

    AuthUserFile "/home/[removed]/domains/dev.[removed].com/public_html/.htpasswd
    AuthType Basic
    AuthName "Login Details"
    Require valid-user
    
    # php settings
    php_value memory_limit 320M
    php_value upload_max_filesize 20M
    php_value post_max_size 20M
    php_value max_execution_time 5000
    php_value max_input_time 5000
    php_flag display_errors on 
    php_flag short_open_tag on
    
    RewriteEngine on
    Options FollowSymlinks
    
    # add www. to [removed].com
    RewriteCond %{HTTP_HOST} ^[removed].com [nc]
    RewriteRule ^(.*)$ <a href="http://www.&#91removed&#93.com/$1">http://www.[removed].com/$1</a> [r=301,nc]
    
    # news
    RewriteRule ^news/?$ / [NC,R]
    
    # EE index.php remove
    <IfModule mod_rewrite.c> 
     RewriteEngine On 
     # Removes index.php 
     RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] 
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ /index.php/$1 [L]
     # If 404s, "No Input File" or every URL returns the same thing
     # make it /index.php?/$1 above (add the question mark)
    </IfModule>
    
    # ignore svn files
    RedirectMatch 403 /\.svn
    
    # default cache 0 seconds
    ExpiresActive On
    ExpiresDefault A0
    
    # cache media files for 1 minute
    <FilesMatch \.(jpg|swf|mp4|jpeg|png|gif)$>
     ExpiresDefault A60
     Header append Cache-Control "public"
    </FilesMatch>
    ExpiresByType image/gif A60
    ExpiresByType image/png A60
    ExpiresByType image/jpeg A60
    ExpiresByType video/mp4 A3600
    ExpiresByType application/x-shockwave-flash A60
    
    # environment variables
    SetEnv APPLICATION_ENV development
    SetEnv SVN_REV 264

     

  • #7 / Oct 31, 2011 12:53pm

    icd2k3

    51 posts

    as a side note, when I check the rendered html on the page I see this:

    <form id="login_form" action="http://dev.luxanimals.com/" method="post">

    even though return is set to “review/login/” currently seems like the action is being overwritten. Any ideas as to what might be going on here? driving me nuts.

    EDIT here is the rendered html for the form currently:

    <form id="login_form" action="http://dev.luxanimals.com/" method="post">
    <div class="hiddenFields">
    <input type="hidden" value="dc9a6b1c1086821d514a280c4374b255f6671d6a" name="XID">
    <input type="hidden" value="15" name="ACT">
    <input type="hidden" value="review/login/" name="RET">
    <input type="hidden" value="1" name="site_id">
    </div>
    <input type="text" size="25" maxlength="32" value="" name="username">
    
    
    <input type="password" size="25" maxlength="32" value="" name="password">
    
    
    <input type="checkbox" value="1" name="auto_login">
    Auto-login on future visits
    
    
    <input type="submit" value="Submit" name="submit">
    </form>
  • #8 / Nov 01, 2011 1:05pm

    icd2k3

    51 posts

    Any thoughts? I tried redirecting myself manually with javascript but the EE code redirects first seems like. It goes directly to the user message template

  • #9 / Nov 01, 2011 11:34pm

    Dan Decker

    7338 posts

    icd2k3,

    The “action” is always going to route through index.php, or in this case, your site’s root. That’s ExpressionEngine main controller and handles the action from there. Alright, if you take your .htaccess out of the picture, do you still see this issue? Since you are using methods that are not officially supported, we need to get that out of the way to get a clear picture of where we’re at.

    Thanks,

  • #10 / Nov 02, 2011 10:00am

    icd2k3

    51 posts

    Thanks so much dan,

    I can confirm that this is happening with or without .htaccess. I renamed it to .htaccess_ for testing purposes and went back to my login screen (now with the site.com/index.php in the address). When I logged in it did the same thing - took me back to the site root with a blank page that jst says “You are now logged in.”

  • #11 / Nov 02, 2011 10:11am

    Dan Decker

    7338 posts

    icd2k3,

    Is this site on a server we can access? It’s time we get a closer look at this. Be on the lookout for an email from me.

    Cheers,

  • #12 / Nov 02, 2011 10:15am

    icd2k3

    51 posts

    Sure, I’ll make a login for ya.

  • #13 / Nov 02, 2011 10:35am

    icd2k3

    51 posts

    note that the template in question is review/login - if you have trouble with the FTP permissions please let me know (may need to contact my server admin)

  • #14 / Nov 03, 2011 10:24pm

    Dan Decker

    7338 posts

    Hi icd2k3,

    I’m just getting a chance to have a look at this. I’ll follow up here with my findings.

    Thanks!

  • #15 / Nov 04, 2011 10:01am

    icd2k3

    51 posts

    Thanks for taking a look at this issue dan. I just replied to your latest email.

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

ExpressionEngine News!

#eecms, #events, #releases