21282 Posts in 5730 Topics by 2601 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 902 Views |
-
Public site redirects to login screen

25 August 2010 at 10:04pm Last edited: 25 August 2010 10:05pm
Odd one this.
In my dev installation, the homepage of the public site is being re-directed to the CMS login screen. It has only recently started doing this after months of no problems.
It doesn't do this in my production installation, and the codebases are the same.
I've checked the Access tabs of the main 'site' node and the homepage beneath it. The 'site' node says "Anyone can view pages on this site", and the homepage inherits its permissions from its parent.
Other pages on the site can be accessed without problem, it's just the homepage that has issues.
I've re-built, flushed, cleared caches and pretty much kicked the PC, but can't stop it re-directing.
Of course, if I log-in to the CMS, it allows me to see the homepage.
Anyone got any ideas?
jf/
-
Re: Public site redirects to login screen

28 August 2010 at 2:12am
^^bump^^
Anybody able to help here?
-
Re: Public site redirects to login screen

1 September 2010 at 9:51am
What version of SS are you running?
You don't happen to have something like:
if(!Member::currentUser()) {
//Some redirect code here
}In the init() method on your Page_Controller class do you?
Mo
-
Re: Public site redirects to login screen

1 September 2010 at 7:23pm
<totally embarrassed>
Nope, I finally figured it. The page that wouldn't show was embargoed...
</totally embarrassed>Rock, lift, crawl under...
jf/
-
Re: Public site redirects to login screen

1 September 2010 at 9:04pm
Ha ha, nice!
We all do things like that. The amount of hours I have wasted trying to chase down things that were glaringly obvious in the end
.
Mo
| 902 Views | ||
|
Page:
1
|
Go to Top |


