Jump to:

23360 Posts in 18097 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Completely unable to login

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 362 Views
  • Maex
    Avatar
    Community Member
    4 Posts

    Completely unable to login Link to this post

    Hi guys,

    I need some urgent help as I can't login into the backend anymore.

    When I try calling my test.mydomain.de/admin I do only get an error 404
    "The requested URL /admin was not found on this server."

    As soon as I add ?flush=all I get prompted to the login mask.
    There I have tried all different passwords and also all possible steps as described here or here but nothing worked for me so far.

    When I check the tables Member & MemberPassword I can see that there is no login there.

    Anybody an idea how to fix this and be able to login again?

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Completely unable to login Link to this post

    Only what is in those links...

    Director::set_environment_type('dev');
    Security::setDefaultAdmin('Admin','Admin');

    Bottom line is if you have caused an error in your code that prevent the php from executing you'll never be able to login until you fix it

  • Maex
    Avatar
    Community Member
    4 Posts

    Re: Completely unable to login Link to this post

    When I do add the following two lines into the file mysite->_config.php

    Director::set_environment_type('dev');
    Security::setDefaultAdmin('Admin','Admin');


    test.mydomain.de/?flush=all does not prompt me to the login mask anymore.

    Any idea why or what else I could do?

    Really have no idea how to fix this

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Completely unable to login Link to this post

    test.mydomain.de/?flush=all does not prompt me to the login mask anymore.

    exactly it removes the need to log in in order to make changes

    I assume this is not a default, unmodified, clean version of silverstipe - in other words you have made changes to the code or added code. Those items that you have changed/added have caused the problem. Otherwise reinstall.

    Any idea why or what else I could do? Really have no idea how to fix this

    Neither do I or I would guess others here. Without FTP details to investigate it is almost impossible to tell as you. You also are very light on the details - e.g. is this a fresh install? has this been working until you did XYZ

  • Maex
    Avatar
    Community Member
    4 Posts

    Re: Completely unable to login Link to this post

    @Swaiba: You are right,I should have added bit more details to my first post so you better understand what I did do.

    This version has not been modified beside that fact that I do have a customized theme.
    I haven't tried to login since nearly 2 years but when I did try yesterday I apparently always typed in the wrong password.

    So I search a bit on how to recover the password in Silverstripe and did find this and this posts in the forum.

    I then did try all steps that have been described there but non of them worked.
    So I went to myphpadmin and run the statement

    DELETE FROM Member;

    As also this didn't help I did some manuall changes in table Member and MemberPassword where I set email to admin and added a not encrypted password as I thought this will enable me again to login after calling test.mydomain.de/?flush=all .

    Of course it didn't work and I have no idea how to fix this now?

    What would you recommend?

    Im using FileZilla and if you can tell me which details you need I will definitely post them here as well.

    Thanks so much for your help!

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Completely unable to login Link to this post

    ok if it is a blank installation AND you know that you have tampered with the Member table I would so the following...

    1)restore from a backup the member table (if possible)
    or
    2)upload a member table from my local host
    or
    3)backup the db and assests and theme - clean the whole site up and then use the db and assests and theme after you have reinstalled - EXCEPT filter the database to remove the member table

    and please DO NOT post the FTP details here!

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