einsteinsboi Posted September 13, 2013 Share Posted September 13, 2013 I built a simple Processwire website about a year ago. Recently the client asked me if I would make some changes, and I have not been able to get the login page. I'm not sure what's going on. I know for a fact that I didn't change the standard login url, but when I go to the domain url and add /processwire to the end of it I simply get redirected to the site. I confirmed that the login url is correct by looking at my master sheet of logins and passwords, so I know it's the right page, but it won't load. I wonder if it matters that the site is installed on a subfolder? So the url looks like this: masterurl.com/sitefolder/processwire. I've been able to make the changes the clients wanted by directly editing the database but I need to be able to log in and work on the website. Any ideas? cheers Link to comment Share on other sites More sharing options...
adrian Posted September 13, 2013 Share Posted September 13, 2013 Just a wild guess - do you think it is possible that they have messed with the .htaccess file or have some other redirect rules (maybe even in the apache conf file) that would be causing the redirect? 3 Link to comment Share on other sites More sharing options...
einsteinsboi Posted September 13, 2013 Author Share Posted September 13, 2013 Just a wild guess - do you think it is possible that they have messed with the .htaccess file or have some other redirect rules (maybe even in the apache conf file) that would be causing the redirect? Thanks for the suggestion. I did think about that, but the client is a complete non-techie and would not have touched anything. Plus he only has the login to the processwire admin, not the cpanel or anything like that. So I'm quite puzzled. The main domain just has an index.html placeholder file in place because I haven't quite started building the site on that yet. The only thing I can think of is that my host ran some updates that may have affected something. But all my other websites on that server (none of them PW) work just fine. Link to comment Share on other sites More sharing options...
pwired Posted September 13, 2013 Share Posted September 13, 2013 Did you ftp .htaccess and double check ? Was there some upgrade done on the server ? http://processwire.com/talk/topic/4434-pw-not-installing-correctly-admin-not-found/#entry43493 -------------------------------------- Here are a few things to check: setting chmod of /site/assets/sessions/ to 777 from: http://processwire.com/talk/topic/1175-cant-login-to-existing-processwire-site/#entry10427 create the "/site/assets/sessions/" folder new by hand from: http://processwire.com/talk/topic/2786-request-seems-to-be-forged/#entry30109 http://processwire.com/talk/topic/2786-request-seems-to-be-forged/#entry32545 changing the session name from: http://processwire.com/talk/topic/4011-cannot-login-to-admin-area/#entry40203 turn on debug from: http://processwire.com/talk/topic/490-how-to-reset-your-password-how-to-enable-the-forgot-password-function/#entry7987 http://processwire.com/talk/topic/2965-sys-admin-problem-cant-login/#entry29256 reset password from: http://processwire.com/talk/topic/2965-sys-admin-problem-cant-login/#entry35624 http://processwire.com/talk/topic/1736-forgot-backend-password-how-do-you-reset/ http://processwire.com/talk/topic/4144-need-help-locating-or-creating-admin-user/ run mysqlcheck --repairfrom: http://processwire.com/talk/topic/3643-cant-access-login-on-existing-site/#entry35697 5 Link to comment Share on other sites More sharing options...
diogo Posted September 13, 2013 Share Posted September 13, 2013 Check the name of the admin page in the database just to be sure. The id is 2. 3 Link to comment Share on other sites More sharing options...
DaveP Posted September 13, 2013 Share Posted September 13, 2013 ...when I go to the domain url and add /processwire to the end of it I simply get redirected to the site. That's odd - you should surely get a PW 404 in normal circumstances for any page that PW thinks doesn't exist, not a redirect. Is it a 301 or a 302? (Not that it makes all that much difference.) Have you got FTP access? Anything in the error log (/site/assets/logs/errors.txt)? I know you don't expect the client to have changed the .htaccess, but it might be worth renaming it and trying a plain vanilla .htaccess from the PW download, just in case they or the hoster have changed something. 3 Link to comment Share on other sites More sharing options...
horst Posted September 13, 2013 Share Posted September 13, 2013 Check the name of the admin page in the database just to be sure. The id is 2. SELECT name,modified,modified_users_id FROM pages WHERE id=2 4 Link to comment Share on other sites More sharing options...
diogo Posted September 13, 2013 Share Posted September 13, 2013 SELECT name,modified,modified_users_id FROM pages WHERE id=2 Or even: echo $pages->get(2)->name 5 Link to comment Share on other sites More sharing options...
einsteinsboi Posted September 14, 2013 Author Share Posted September 14, 2013 Thanks guys!! Will go through these suggestions as soon as I can and get back to you. Saturday night here, "apparently" I have to get away from the computer and be social and whatnot... meh 3 Link to comment Share on other sites More sharing options...
ryan Posted September 15, 2013 Share Posted September 15, 2013 Diogo and Horst's suggestion to add that bit of code to a template file–temporary–is probably the fastest way to find out what the admin URL is: echo $pages->get(2)->url; Also, double check that you are using a trailing slash on your admin URL. 3 Link to comment Share on other sites More sharing options...
einsteinsboi Posted September 15, 2013 Author Share Posted September 15, 2013 OK, so I've checked the database and the admin url is definitely /processwire. So that wasn't the problem. But all the directions to check the htaccess paid off I opened and made some changes. I commented out the "RewriteBase /" line and added "RewriteBase /sitefolder/ " where sitefolder is the name the subfolder the site is installed in and that's done the trick!!! I'm not entirely sure why this was the problem since I never had issues logging in a year ago when I created the site and as far as I know nothing's changed on the server since, but it works now and I can log in Thanks for all the suggestions and help! Link to comment Share on other sites More sharing options...
diogo Posted September 15, 2013 Share Posted September 15, 2013 Diogo and Horst's suggestion to add that bit of code to a template file–temporary–is probably the fastest way to find out what the admin URL is: echo $pages->get(2)->url; Also, double check that you are using a trailing slash on your admin URL. No, the fastest way is echo '<a href="'.$pages->get(2)->url.'">this way to the admin</a>'; 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