Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » /db/build problems and Authentication errors, and more

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

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

Page: 1
Go to End
Author Topic: 1976 Views
  • tmcw
    Avatar
    8 Posts

    /db/build problems and Authentication errors, and more Link to this post

    (reposting)

    I'm having a problem using /db/rebuild. When I go to that, I enter all my possible password combinations, and none of them work. Also, as a sidenote, this asks for a "username", while all other parts of the CMS refer to a firstname, nickname, and email, but never a username.

    So, I try to reset the password by /admin/security/ and when I try that, nothing happens (when I click save), but there is a response from the Ajax call - just

    ERROR:There has been an error

    .

    Is there any way to fix this or debug it? It's fairly serious because it might mean that I'm locked out of my own install when my cookie expires.

  • tmcw
    Avatar
    8 Posts

    Re: /db/build problems and Authentication errors, and more Link to this post

    Both bugs are temporarily averted by escaping from requireLogin() and just returning true.

  • Willr
    Avatar
    Forum Moderator
    5503 Posts

    Re: /db/build problems and Authentication errors, and more Link to this post

    you can also avert that problem by using dev mode while you need to do db/build. You can do this by adding this in the _config.php - Director::set_environment_type("dev"); you can read more about dev mode - http://doc.silverstripe.com/doku.php?id=devmode.

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: /db/build problems and Authentication errors, and more Link to this post

    Its possible the users set up in your member table are not quite right, and that the code to check you're an admin here, is different to the admin check elsewhere....

    I suggest going into the code and seeing which part is returning false in terms of that user being an admin ... (if you have time!).

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