22999 Posts in 11854 Topics by 2828 members
Page: 1 2
|Go to End||Next >|
19 November 2009 at 5:23am Last edited: 22 November 2009 12:11pm
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!
19 November 2009 at 3:15pm
Is an apache (or other web server) 404 or a SilverStripe 404? There might be other .htaccess files running amok.
19 November 2009 at 4:15pm
Thanks for your comment, Dale. It is a Silverstripe 404 and I just don't know what went wrong..
19 November 2009 at 4:42pm
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?
19 November 2009 at 10:44pm
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 ..
20 November 2009 at 4:29pm
Well that is the error then! Jump into your tmp director and chmod 777 those badboys.
20 November 2009 at 11:57pm
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?
21 November 2009 at 10:56am
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?
Page: 1 2
|Go to Top||Next >|