MichaMichaMicha Posted February 13, 2013 Share Posted February 13, 2013 Recently I set up ProcessWire for 3 environments: - Development - Testing - Production From the very beginning I've had the issue when logging in in the admin the WireException "This request was aborted because it appears to be forged." gets triggered. I've already changed the vars in config.php: //different for each env. $config->sessionName = 'wireDEV'; $config->sessionName = 'wireTEST'; $config->sessionName = 'wirePROD'; $config->sessionChallenge = false; $config->sessionFingerprint = false; It even happened to someone that has only logged in to Production. I'm very sure the assets folder and the config.php in the site folder both have 777 permissions recursively. I've added phpcode to remove all cookies when the WireException triggers, that sort of seems to fix the problem, only people have to login twice to get in the admin... Does anyone know what could be wrong? Link to comment Share on other sites More sharing options...
Ben Posted February 13, 2013 Share Posted February 13, 2013 As long as your environments are hitting unique server names (dev.example.com, www.example.com), I don't think session collision should be a problem. In the login form, do you have a CSRF token (the _post_token hidden input)? Any chance you're using a custom admin theme? EDIT: You could try another setting, in config.php: $config->protectCSRF = false; It's best to leave it enabled, but it might help rule out other issues. Link to comment Share on other sites More sharing options...
Manfred62 Posted February 13, 2013 Share Posted February 13, 2013 "This request was aborted because it appears to be forged." sounds like the same I got, when trying to install PW with 'ProcessWire Blank Profile'. This was fixed in the newest dev version. 2 Link to comment Share on other sites More sharing options...
interrobang Posted March 14, 2013 Share Posted March 14, 2013 I just moved a site from my local MAMP to the production server and could not login. I tried everything suggest here in the forum, but the "forged" message remained.Because I did not want to upload all sessions I excluded the "/site/assets/sessions/" folder when uploading the site by ftp. As soon as I created the "/site/assets/sessions/" folder by hand on the server everything worked again.Conclusion: Remember that you need these folders:/site/assets/cache//site/assets/logs//site/assets/sessions/ 5 Link to comment Share on other sites More sharing options...
bitpolymerase Posted April 10, 2013 Share Posted April 10, 2013 Conclusion: Remember that you need these folders: /site/assets/cache/ /site/assets/logs/ /site/assets/sessions/ Thank you for pointing this out, I have wasted hours trying to figure out the differences between the dev and production environments that was preventing admin login. For some reason git was not pushing up the /site/assets/sessions/ directory. Simply making this directory fixed my problem. 2 Link to comment Share on other sites More sharing options...
Gazley Posted July 13, 2013 Share Posted July 13, 2013 Same thing for me with Git - great tips Link to comment Share on other sites More sharing options...
gebeer Posted July 18, 2014 Share Posted July 18, 2014 git push ignores those dirs because they are listed in .gitignore Just came across this post trying to solve the same issue... 1 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