Can't log in..."Page not found"

Permalink
I went through this earlier this year and never did find an answer. Now it's happening with another install (fortunately, a test environment).

Here's the code in the footer for the login feature:

<a href="<?php echo $this->url('/login')?>"><?php echo t('Site Admin')?></a>


This is exactly the same (other than the echoed text) as another test install in which the login is functioning correctly. In the bad install, when I click the "admin" link, it goes to ".../(name of client)/index.php/login/", and I get a "Page Not Found" notice.

Does anyone have any insight into this?

1db
View Replies:
planist1 replied on at Permalink Reply
planist1
Take a look at this link. Perhaps adding the global $c is necessary. http://thedailybyte.net/2013/08/a-login-link-that-returns-to-the-co...
1db replied on at Permalink Reply
1db
I just tried that, and it didn't work for me. It might work just fine to handle the redirect after login...but I still get a "Page Not Found" error, so I can't log in to try it.
planist1 replied on at Permalink Reply
planist1
Do you have a custom login page override root/config/site_theme_paths.php file?
1db replied on at Permalink Reply
1db
No. The site_theme_paths file is the standard one that comes with the install.

This is the question I posed the last time: why a "Page Not Found" error? It's obviously trying to find a page and not finding it...so if it's not hunting for /concrete/single_pages/login.php or /controllers/login.php, what IS it looking for? If I knew that I could at least check to see if the file was there, or was somehow corrupted.
planist1 replied on at Permalink Reply
planist1
Are you able to navigate to other pages on the site?
1db replied on at Permalink Reply
1db
Actually, no, but it's a completely different problem--the links on the home page were manually set up in the template files, so they re-direct away from the development server to the actual site (don't ask me why...I don't remember).

Still, it appears to be a complete, fully functional install...it just won't let me log in, so I can't even see how much actual content is there.

(This, by the way, is a site that hasn't been touched in over half a year.)
planist1 replied on at Permalink Reply
planist1
Can you get to /(name of client)/index.php page?
1db replied on at Permalink Reply
1db
Yes, I can do that just fine. And it displays just fine, which means Concrete is working. But clicking the admin login link gives me the error. There's also a "Back to home" link on that page that works...so whatever template it's drawing from is correctly coded to allow Concrete to find its way through the maze of files.

The strange thing is, login.php is there. I've accessed it through FTP, and downloaded it to see if there was anything wrong with it.