Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Problems with CMS logon page after upgrading


Reply


5 Posts   890 Views

Avatar
Jen

Community Member, 5 Posts

4 July 2012 at 4:52pm

Edited: 04/07/2012 11:50pm

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.

Avatar
Mano

Community Member, 1 Post

6 July 2012 at 8:07am

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?

Avatar
Jen

Community Member, 5 Posts

6 July 2012 at 8:36am

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!

Avatar
Matt Villnave

Community Member, 2 Posts

7 July 2012 at 1:40pm

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?")
               ));
            }*/

Avatar
bliman

Community Member, 1 Post

12 July 2012 at 2:31am

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.