Stefanowitsch Posted March 15, 2022 Share Posted March 15, 2022 I just put up a site on a hosting service that I didn't use before (strato.de). As always in those cases some things just won't work. Right now I can not log into the backend of the site. When calling the backend via https://www.mysite.com/processwire (not the actual URL of my site) I get a blank white page without any content. When turning the debug mode on this login page looks normal. But after logging in again all I see is a blank white page. In the session log I get a 'Invalid challenge value' error. The wire-challenge cookie is indeed missing, I can confirm hat. However the session log also says "Successful login for 'admin'". I've searched the board and found a few threads about this problem but none of the solutions work for me. Even turning the sessionChallenge off in the config does nothing: $config->sessionChallenge = false; https://processwire.com/docs/start/install/troubleshooting/ Link to comment Share on other sites More sharing options...
Stefanowitsch Posted March 15, 2022 Author Share Posted March 15, 2022 Another thing I discovered is that the redirect to the "URL with Slash at the end" does not work for the back-end login. For all other pages in the frontend it does. When calling: https://www.mysite.com/processwire I get a blank page. In that case you normally get redirected to the same URL but with a slash at the end: https://www.mysite.com/processwire/ This URL shows the login page. But after logging in I get a new blank page... In my local dev environment everything is working fine and I never had this problem before on other hosting providers. Link to comment Share on other sites More sharing options...
Stefanowitsch Posted March 15, 2022 Author Share Posted March 15, 2022 So finally I uploaded the website into my own personal webspace to see if the login works - it does. So I guess it is some kind of .htaccess or php.ini (black) magic that is missing on the strato.de server. I am looking forward to see if somebody has a clue about this. ? Link to comment Share on other sites More sharing options...
Stefanowitsch Posted March 15, 2022 Author Share Posted March 15, 2022 I was able to solve the problem. After logging into the backend and getting the blank admin page I discovered a log entry inside the tracy debugger log. There was an issue in my /site/ready.php file that threw an error: PHP Warning: Cannot modify header information - headers already sent by That error was caused by some spaces behind the closing ?> Tag inside the ready.php. I am using this same ready.php file on multiple other websites and it never made me any trouble though. I find the fact weird that this error is only provoked when trying to log into the backend. Anyhow I am glad that this is solved now. 1 Link to comment Share on other sites More sharing options...
virtualgadjo Posted March 16, 2022 Share Posted March 16, 2022 Hi, that's why it is strongly advised not to use closing php tags for php only files, a simple space after the closing tag is considered as an ouput and if it occurs before any php header il will return an error ? in case it may be useful have a nice day 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now