Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Login doesn't load CMS

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 16942 Views
  • vcmusic42
    Avatar
    Community Member
    22 Posts

    Login doesn't load CMS Link to this post

    I don't know what's going on, but as of the past few days, my login page fails to redirect me to the CMS admin. When I go to:

    http://domain.com/Security/login

    it prompts me for the login/password, then says "Welcome back," but then nothing happens. I was concerned I wouldn't be able to get into the admin at all, but I did, by going to domain.com/admin directly. However, I was rather fond of the redirect and want it back!

    The only changes I've made have been to the page templates, because I've been testing a new layout. Other than that everything's the same. Any ideas on what could have caused this?

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Login doesn't load CMS Link to this post

    To login to the CMS go to domain.com/admin/ this will then redirect you to the security login page, then back to the CMS admin interface after you have logged in.

  • vcmusic42
    Avatar
    Community Member
    22 Posts

    Re: Login doesn't load CMS Link to this post

    The latest development as of 5 mins ago is that now, even when I enter the correct login details, going straight to http://domain.com/admin gets me this:

    ERROR:
    Error

    The website server has not been able to respond to your request.

    No 500, 404, or other indications of where this is coming from.

    This is ODD. All I've been doing this past hour is the Data-object Relationships tutorial, and I see my new pages/objects correctly in the flush - which proves it's not that the website is down. I get the login pages and the flush just fine, but have NO ACCESS to the admin now. ?? HELP!!

  • vcmusic42
    Avatar
    Community Member
    22 Posts

    Re: Login doesn't load CMS Link to this post

    Ok, when in doubt, retrace your steps, right? I deleted the 3 changed files I'd been working with in the tutorial - Project.php, Student.php, and ProjectHolder.php. Ran a flush and deleted the cache, and the admin reappeared. Something in one of those files must have been causing an error, although I have no idea what it could have been...

    looking for typos now...

  • gamelodge
    Avatar
    Community Member
    6 Posts

    Re: Login doesn't load CMS Link to this post

    I have the same problem with same error:


    ERROR:
    Error

    The website server has not been able to respond to your request.

    This is new installation, no modifications.
    I downloaded the software
    downloaded modules gallery/ecommerce/forum/blog
    uploaded all
    did install

    All works and i can login and manage all sections except CMS everytime i try and manage CMS it gives me that error

  • gamelodge
    Avatar
    Community Member
    6 Posts

    Re: Login doesn't load CMS Link to this post

    Here is the error i get when switching on dev mode-

    FATAL ERROR: DATABASE ERROR: Couldn't run query: SELECT `Post`.*, `Post`.ID, if(`Post`.ClassName,`Post`.ClassName,'Post') AS RecordClassName FROM `Post` INNER JOIN `Post` AS PostList ON PostList.TopicID = `Post`.TopicID WHERE (`Post`.ForumID = 14 and `Post`.ParentID = 0 and `Post`.Status = 'Moderated') GROUP BY `Post`.ID ORDER BY max(PostList.Created) DESC LIMIT 30 | Invalid use of group function
    At line 397 in /home/silver/public_html/sapphire/core/model/Database.php

    looks like a forum issue?

    Unistalled Forum All works fine now
    installed form again - broken again
    so must be a forum issue, anyone else having this problem?

  • prachait
    Avatar
    Community Member
    1 Post

    Re: Login doesn't load CMS Link to this post

    Hi

    I too have the same issues
    I just installed the new version, and every thing works ok
    As soon as I install the FORUM, it become broked
    /admin gives
    ERROR:
    Error

    The website server has not been able to respond to your request.

    Solution::

    1. Open forum\code\forum.php
    2. go to line 265

    return DataObject::get("Post", "`Post`.ForumID = $this->ID and `Post`.ParentID = 0 and $statusFilter", "max(PostList.Created) DESC",
             "INNER JOIN `Post` AS PostList ON PostList.TopicID = `Post`.TopicID", $limit
          );

    remove the max() from max(PostList.Created) to PostList.Created

    New code will be

          return DataObject::get("Post", "`Post`.ForumID = $this->ID and `Post`.ParentID = 0 and $statusFilter", "PostList.Created DESC",
             "INNER JOIN `Post` AS PostList ON PostList.TopicID = `Post`.TopicID", $limit
          );

    and it will work fine.

    Kindly let me know your feedbacks on info at prachait dot com

    Thanks
    Prachait Saxena

  • gamelodge
    Avatar
    Community Member
    6 Posts

    Re: Login doesn't load CMS Link to this post

    has someone reported this as a Bug yet?

    16942 Views
Page: 1 2
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.