1

I created a custom visual force page to be our login page for our community. When I go to manage communities and try to set this as the login page it gives me

Error: you can only select pages that are accessible by the community guest user

I have read the getting started with communities and they don't accurately describe how to do accomplish this. I cannot see a community guest user to give access to this visual force page only profiles. I also cannot see a community guest user to add to a profile.

What do I have to do to allow this to work?

3

When you create a community inside Salesforce ,A salesforce site is automatically spun for you for accessing the community without login credentials as a guest user .

Lets take an example community set up to understand this

I have the communities as in screenshot

enter image description here

When i navigate to sites via set up menu,I see sites are already created by SFDC

enter image description here

The error is complaining your page is not accessible for your site .Below screen shot will help you on how you will add your VF to provide access to guest user

enter image description here

  • I cannot get to sites. When I go to the sites screen it wants me to register my force.com domain. This is in our sandbox as we want it all working fine before we roll it out. Our community works fine with the standard built in login page. When I try to register the existing domain that our community is using it complains that it already exists. So I cannot get the site detail page to give public access to the custom VF login page – Ohmicron Feb 19 '16 at 13:59
  • Try using different domain names. Your community will also have same domain name once you register a domain – Mohith Shrivastava Feb 19 '16 at 14:02
  • I found a way there by following the directions on Rao's link. Now it let me set it as my login page without complaining but it still shows the old login page when I bring it up. I went out and back into my community and it is showing my changes. So it should be using the custom VF login page but it's not – Ohmicron Feb 19 '16 at 14:12
  • You will go to community management administration page and select login page as your page . – Mohith Shrivastava Feb 19 '16 at 14:25
  • That was the part it wouldn't let me do until I gave the VF page public access which you showed me how to do. It is set in community management administrator as my VF page. It let me save it now without issue but it still shows me the built in standard login page when I go to the login URL for our community. However I can remove the /login from the URL and replace it with my custom VF Page name and that seems to work. Do I need to call my VF Page login? – Ohmicron Feb 19 '16 at 14:35
0

We also faced the same problem in our project . We noticed the User which is associated to the profile was inactivated . Once we activated the user it starts working .

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.