Jump to:

4873 Posts in 7154 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Error message when trying to access cms login page

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 838 Views
  • tchintchie
    Avatar
    Community Member
    63 Posts

    Error message when trying to access cms login page Link to this post

    Hi everyone!

    I´ve just installed SS 2.4.5 on my live-webserver (for the first time - been developing on mamp). The installation went smoothly without any problems. I followed the step-by-step documentary....after adding my custom content (theme, some codes and modules) I imported the database to mySQL and ran a dev/build.
    Website is showing (not quite as it should look like but nothing I couldn´t fix) BUT when I try to access the CMS login (admin) page to log in I get the following error (included in a seperate .txt file due to it´s length.
    Does anyone have a solution or do I have to reinstall? If so, what could probably have caused this error so I don´t make the same mistake again? Obviously must have something to do with my custom content (which worked fine on MAMP)....
    appreciating any help

    kind regards
    tchintchie

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Error message when trying to access cms login page Link to this post

    Versioned::get_version: Couldn't get SiteTree.1

    For some reason the code is trying to get a SiteTree versioned object that doesn't exist. From looking at the backtrace is originates from a template file so it could be a caching issue so try visiting admin/?flush=all rather than admin/ to flush that out.

    If you have just installed SS, then I suggest dropping or emptying the database and running dev/build again and see if you have any issues. Make sure dev/build is successful by scrolling all the way to the bottom of the page.

  • tchintchie
    Avatar
    Community Member
    63 Posts

    Re: Error message when trying to access cms login page Link to this post

    thanks Willr!!
    flush all did it!! However now it won´t let me login with my mail and password. I´m pretty sure it´s correct but is there a way to check the login data other than to reinstall??

    many thanks in advance!!

  • tchintchie
    Avatar
    Community Member
    63 Posts

    Re: Error message when trying to access cms login page Link to this post

    Nevermind...reinstalled and tried again. Works fine until i import my own database. After that the login page gives me the same error as before except that flush all didn´t work this time
    So I emptied my database (as you suggested) and did a dev build. Again all went back to normal. Login worked and all. But re-importing my database doesn´t work anymore due to the following cause:

    ERROR

    SQL-command:

    --
    -- database: `rs_reisen`
    --
    -- --------------------------------------------------------
    --
    -- table structure for table `ArticlePage`
    --
    CREATE TABLE `ArticlePage` (
    `ID` int( 11 ) NOT NULL AUTO_INCREMENT ,
    `Date` date DEFAULT NULL ,
    `Author` mediumtext,
    PRIMARY KEY ( `ID` )
    ) ENGINE = MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =29;

    MySQL reports: Documentation
    #1050 - Table 'ArticlePage' already exists

    so is there anything wrong with my database? although it says "articlepage" already exists the database shows zero tables in myphp

    838 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.