3

My URL :- http://myurl.com/homepage2 This is a site URL... I am showing a page if user will fire this URL..

While running this URL i am getting some permission problem --

What i have tried -- Try to modified profile setting for assigning permission set and all.. But no use.

I followed some documentation for visual force.. But unable to figure out.

FrontEnd Expert
  • 283
  • 3
  • 16
  • Is this page displaying data from Salesforce? Have you checked that the site guest user has access to all sobjects and fields? – Bob Buzzard Dec 20 '12 at 08:11
  • @BobBuzzard I am not getting this options... While checking I am unable to check site guest user access.. – FrontEnd Expert Dec 20 '12 at 09:11
  • 2
    The site guest user = public access settings. Check the settings to make sure the profile has access to all the required data. You could also try clicking the 'preview as admin' for the site and navigating to that page - often that allows you to see the underlying error. – Bob Buzzard Dec 20 '12 at 09:12
  • 1
    If you go to Setup > Monitoring > Debug Logs and create a new monitor on your site guest user is there anything amiss after viewing the page again? – Matt and Neil Jan 23 '13 at 09:31

2 Answers2

2

I have a lot of experience with this, and can probably help you.

Can you go to sites and get the name and URL of the site? Often, unless your site is the "root", the URL needs to be URL/sitename/pagename and URL/pagename will give you that error.

As far as debugging sites, there's a good question about that

Often, you can get this page if there's a visualforce error of some sort (unhandled exception) because sites permissions don't let force.com share that error with guests so you get the awful progression of your page>error page>auth error.

So use the debug trail to find out what's happening.

Shane McLaughlin
  • 8,678
  • 6
  • 44
  • 78
1

In the configuration of your Site (setup>app setup> develop > sites), the page should be added to the Site Visualforce pages if you want to access it as a guest user.

Clicking the public access button will allow you to set the guest profile settings, i'm not sure if you can do that through permission sets. Pages you add to the Site Visualforce pages will already be added to the profile.

Samuel De Rycke
  • 9,550
  • 8
  • 45
  • 73