Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Admin accounts are not working?

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: 777 Views
  • dynamite
    Avatar
    Community Member
    66 Posts

    Admin accounts are not working? Link to this post

    Hello -- something went wrong with one of my SS installs, and the admin accounts keeping getting kicked back with the error message:

    You don't have access to this page. If you have another account that can access that page, you can log in below.

    I know it is not a password issue - I even used "Security::setDefaultAdmin" in my config to make sure.

    Also, I have tried a /dev/build?flush=1 but it didn't seem to change anything or repair any tables. I ran a MySQL table check/repair, and also checked the tables Groups, Permssions, Group_Members and Members but it all looks good.

    Does anyone have any ideas for me on what to check next? Thank you very much!

  • carlos
    Avatar
    Community Member
    41 Posts

    Re: Admin accounts are not working? Link to this post

    Hi,

    Did you check you DB? using phpmysql or something else?

    Have you tried "I've lost my password" link?

    cheers

  • dynamite
    Avatar
    Community Member
    66 Posts

    Re: Admin accounts are not working? Link to this post

    I found the problem, but still need a more permanent fix...

    I incorrectly assumed that the "canEdit" method was only for the API calls.

    Once I commented out the following line in my code/Page.php, it started working again.

    function canEdit() { return false; }

    So... does anyone know how to deny access to editing for API calls only?

    Thanks!

    ~ Jeremy

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