Instead of opening /admin a regular page is showing up and tells me that I am logged in as “xyz” and also gives me the opportunity to “Log in as someone else”.
I know it is a outdated version of SilverStripe but it worked all the time and I do not have the time to upgrade it right now. The behavior is occuring after migration to another (old) server which is running php 5.2.14.
I need my admin interface back.
Could you help, please?
Did you try to flush the cache?
If you are using a “silverstripe-cache” Folder for caching, try deleting the content of that folder.
Then force a cache regeneration with ?flush=all.
If that doesn’t work (because you need to be logged in) try appending “isDev=1” or set the enviroment to “dev” in your _config.php file.
You could add these to your _config.php
Director::set_environment_type('dev');
Director::setBaseURL('/'); // <- you might not need this
Security::setDefaultAdmin('admin','admin');
I have no file named “combined” in the assets folder, I just have a dir named _combinedfiles/ in this folder. Do you want me to remove this? It is containing leftandmain.js, base.js and cmsmain.js which should be needed by the cms…
I tried all these things I was able to find in the net. I have this in my _config
I am sure I have the correct db/password, since dev/build?flush=all is working.
I also tried to log in using default admin’s credentials. It shows me “You are logged in as xyz”. So I guess this is working.
I am behind a reverse proxy with my SS-Installation. Do you think there could be a problem with cookies passing through? On the other side: It tells me that I am logged in…
Hm… did you try to reach any Backend URL? Not just “/admin” but “/admin/assets” or “/admin/security”?
Not sure about the proxy, I have no experience with those.
And yes I meant the “combined” folder in assets. As the name says: they get combined. Make a backup first and then delete the whole “combined” folder. Then flush again.
When I enter
www.my-website.tld/admin/assets for example, it leads me to the login form, I am able to log in and after hitting “log in” it just shows up with the hint “You are logged in as xyz” but does not redirect to the admin interface with this URL: http://www.my-website.tld/Security/login?BackURL=%2Fadmin%2Fassets (which is shown in the browser url area).
Same behavior after moving assets/_combinedfiles/ out of the webspace…
I have an internal area at the website for members only.
It has exactly the same behavior - it does not redirect, impossible to use it.
mod_rewrite is enabled, rewriting seems to work also since my urls show up in a friendly manner, like
www.my-website.tld/about-us/ and not like www.my-website.tld/index.php/about-uss/ or something else.
This is my .htaccess out of the website root:
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
<Files web.config>
Order deny,allow
Deny from all
</Files>
ErrorDocument 404 /assets/error-404.html
ErrorDocument 500 /assets/error-500.html
<IfModule mod_alias.c>
RedirectMatch 403 /silverstripe-cache(/|$)
</IfModule>
SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
RewriteBase /