Jump to:

23450 Posts in 18899 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Cannot access admin area - "Page not found" [RESOLVED]

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 2
Go to End
Author Topic: 5796 Views
  • katja
    Avatar
    Community Member
    46 Posts

    Cannot access admin area - "Page not found" [RESOLVED] Link to this post

    Hi,

    on a site that has been live for a while I now keep getting a 404 page whenever I try to access /admin. All cache clearing doesn't help.
    Curiously, I can still log in and out by going to /Security/login and Security/logout

    Also checked the .htaccess file, it's the same as it always was and as is recommended here in a previous post.

    I have no clue why this happened all of a sudden. Any help is much appreciated!

    Cheers,
    K

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Cannot access admin area - "Page not found" [RESOLVED] Link to this post

    Is an apache (or other web server) 404 or a SilverStripe 404? There might be other .htaccess files running amok.

  • katja
    Avatar
    Community Member
    46 Posts

    Re: Cannot access admin area - "Page not found" [RESOLVED] Link to this post

    Thanks for your comment, Dale. It is a Silverstripe 404 and I just don't know what went wrong..

    Kat

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Cannot access admin area - "Page not found" [RESOLVED] Link to this post

    Ahh, that is a good thing I suppose. Have you confirmed that the _config.php file is still in the /cms/ director, and intact? The director rules in there would reserve /admin for the CMS. Also have you tried doing a dev/build/flush=all too?

  • katja
    Avatar
    Community Member
    46 Posts

    Re: Cannot access admin area - "Page not found" [RESOLVED] Link to this post

    Thanks! The config seems okay, but when I do flush=all, I get an error message:
    [Warning] fopen(/tmp/silverstripe-cache-home-henning-public_html/manifestClassParse-_home_henning_public_html_mysite_code_BookHolder.php) [function.fopen]: failed to open stream: Permission denied ..

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Cannot access admin area - "Page not found" [RESOLVED] Link to this post

    Well that is the error then! Jump into your tmp director and chmod 777 those badboys.

  • katja
    Avatar
    Community Member
    46 Posts

    Re: Cannot access admin area - "Page not found" [RESOLVED] Link to this post

    Thanks again for helping me, Dale. This file does not exist at all, not even the directory silverstripe-cache-home-henning-public_html..

    Why does it need to open a cached file in order to work? Do you have any other idea what I could do?

    Kat

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Cannot access admin area - "Page not found" [RESOLVED] Link to this post

    SilverStripe generates templates on access of pages to speed up load times. It is a core part of how it operates and it is in your best interest to get it functioning correctly.

    The file will not be there in the first place because the error is stating that it can't created it (Permission Denied). The bigger issue here is why the user your webserver runs as doesn't have write access to the /tmp directory. That is not typical.

    This is an issue at your web host. Do you have support with them or is it a server you manage?

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