Jump to:

1156 Posts in 2568 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Problems with CMS logon page after upgrading

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 832 Views
  • Jen
    Avatar
    Community Member
    5 Posts

    Problems with CMS logon page after upgrading Link to this post

    I had created a very basic site in SS 2.4.5 and decided to have a look at 3.0 before I went any further. Installation was fairly smooth, but now when I try to access the admin logon page for the CMS, I receive the following error:

    error on line 112 at column 7: Opening and ending tag mismatch: input line 0 and div

    It renders the page up to the "Remember me" tick box. I can see the error in the page source:

             <div id="Remember" class="field checkbox">
       <input type="checkbox" name="Remember" value="1" class="checkbox" id="MemberLoginForm_LoginForm_Remember">
       <label class="right" for="MemberLoginForm_LoginForm_Remember">Remember me next time?</label>
       
    </div>

    Can bypass the problem by turning off autologin, so it doesn't display the checkbox, but get the same error on the lost password link:

       <div class="Actions">
          
             
       <input type="submit" name="action_dologin" value="Log in" class="action action" id="MemberLoginForm_LoginForm_action_dologin">

          
             <p id="ForgotPassword"><a href="Security/lostpassword">I've lost my password</a></p>
          
       </div>
       

    Can't see why this is happening or how to fix it.

  • Mano
    Avatar
    Community Member
    1 Post

    Re: Problems with CMS logon page after upgrading Link to this post

    I have the same probleme here.

    After upgrading, I was able to log in as usual. But after the first logout, I'm not able to load the "admin" page anymore.
    The other "normal" sites are shown as usual, no errors there. But loading the admin page, stops after the "remember my password" box.

    That's the error shown on top:

    This page contains the following errors:
    error on line 111 at column 7: Opening and ending tag mismatch: input line 0 and div
    Below is a rendering of the page up to the first error.

    Have you found a solution so far Jen?

  • Jen
    Avatar
    Community Member
    5 Posts

    Re: Problems with CMS logon page after upgrading Link to this post

    Not yet, Mano. As I said, I can see the missing / in the generated page source but can't figure out why its missing in the code. You can at least get yourself logged in to the cms by turning off autologin. The page may still generate an error, but the logon functionality is there.

    Let me know if you find the answer!

  • Matt Villnave
    Avatar
    Community Member
    2 Posts

    Re: Problems with CMS logon page after upgrading Link to this post

    Same issue here.. this is a workaround, but I commented out the following in framework/security/MemberLoginForm.php to get the submit button to render and work again, though I still do get the error message.

    /*if(Security::$autologin_enabled) {
                   $fields->push(new CheckboxField(
                      "Remember",
                      _t('Member.REMEMBERME', "Remember me next time?")
                   ));
                }*/

  • bliman
    Avatar
    Community Member
    1 Post

    Re: Problems with CMS logon page after upgrading Link to this post

    Some of the form field templates have missing closing slashes, for example:

    /framework/templates/forms/CheckboxField.ss

    Contains:

    <input $AttributesHTML>

    But adding in the slash:

    <input $AttributesHTML />

    and rebuilding works.

    832 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.