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.

Login form working only on one template not others

November 05, 2010 10:38pm

Subscribe [3]
  • #1 / Nov 05, 2010 10:38pm

    jeramiah

    301 posts

    It looks like my stand alone member login form isn’t working anymore on other pages just in the right sidebar.  I just moved servers not sure if that could be to blame.  But it was working before so automatically I suspect that. So, it IS WORKING on the right column of my website but not on any other pages which is weird. I’m not sure how to troubleshoot this given it is working in the rightcolumn template.  I’m posting my code even though I’m sure the code is correct:

    {if logged_out} <h2>Login to view this content</h2>
    <p>                    {exp:member:login_form return="site/loginclose"}<br />
                            <label for="username"><span class="highlight">*</span>Username</label></p>
    
    <p>                         <input type="text" name="username" value="" id="username" size="20" maxlength="35"  class="textfield" /></p></p>
    
    <p><br />
                            <label for="password"><span class="highlight">*</span>Password</label></p>
    
    <p>                        <input type="password" name="password" id="password" value="" size="20" maxlength="35"  class="textfield" /></p></p>
    
    
    
    <p>                        <input type="image"  src="/images/theme_images/submit.png" name="submit" value="{lang:submit}" /></p><br />
                         {/exp:member:login_form}<br />
                        <br />
                     </p>
    
    <p>   <br />
                        <br />
                        <a href="http://jennyandjeramiah.com/index.php/member/forgot_password/" target="_blank" rel="noopener">Forgot your password?</a><br />
                    {/if}<br />
                    {if logged_in}<br />
                        You are logged in already {screen_name}!</p>
    
    <p><br />
      <a href="http://{path=logout}" target="_blank" rel="noopener">Click here to Logout</a><br />
                    {/if} </p>
    
    <p>   <br />
      Not a member? <a href="http://jennyandjeramiah.com/index.php/site/login/" target="_blank" rel="noopener">Register to view this content</a>

    As always your help and guidance is greatly appreciated.


    **EDIT***
    I just upgraded to 1.6.9… still experience the issues.  Build:  20100430

  • #2 / Nov 06, 2010 3:49am

    jeramiah

    301 posts

    Okay the problem seems to be isolated to my photo galleries.  I’ve found out that when a member is logged in, they can in fact access other member only areas.  The only thing that is not recognizing them as members are my photo galleries which I’ve set to members only through the “Template Preferences Manager”

    Can you test it on your end?

    go to http://www.jennyandjeramiah.com/index.php/site/gallery/

    username: testaccount
    password: testpassword

  • #3 / Nov 07, 2010 11:33am

    Greg Salt

    3988 posts

    Hi Jeramiah,

    I can login ok with those credentials but can’t view any photo gallery entries. This possibly connected to the way that you are validating memberships. Can you disable that JS modal temporarily and test without it in place?

    The latest EE version is in fact 1.7.0. Can you please upgrade to that version?

    Cheers

    Greg

  • #4 / Nov 07, 2010 2:11pm

    jeramiah

    301 posts

    Greg, thank you very much for the reply.  Are you talking about the JS shadowbox that the galleries popup in?  I have actually disabled that before and went straight to a gallery page: http://jennyandjeramiah.com/index.php/kansas/category/C76

    So, one thing I tried was to use the Template Preference Manager to set membership on another template that is not a gallery since I made the move to a new server.  That’s when I discovered something very interesting.  Since the move, ANYTHING that I specify as members only is NOT working, however anything that was changed before the move IS working. 

    I don’t have access right now to 1.7.  I will in the near future.

  • #5 / Nov 07, 2010 2:26pm

    jeramiah

    301 posts

    I have nothing in my .htaccess file.


    Control Panel Session Type: Cookies and Session ID
    User Session Type: Cookies Only.

    And I turned on error reporting and there are zero errors being generated on this.  So weird. I loaded another installation of EE on our server (we have a reseller account so i created a new account) and it is working fine.

    I decided to reload 1.6.9 and clear my cached data.  Still not working….

    So what is happening is EE is logging members in, but not recognizing them as members when I select certain templates for members only after the move to the new server.

    Oh ya… I’ve also tried logging into EE’s native login: /index.php/member/login and it’s still not working.

    Well I updated the server path to my captcha and that seemed to fix the issue of not being able to see protected templates… but still didn’t fix the issue of seeing gallery templates.  So that is unresolved… but you can close this.  I just protected the main page that all the photo galleries are on.

  • #6 / Nov 08, 2010 10:06am

    Sue Crocker

    26054 posts

    Glad you have a workaround for now. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases