function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Danny IncompanyDanny Incompany 

force.com visualforce page displays error on site

Hi,

 

We have the following site:

 

www.vymisa.com/app/home.html

 

When accesing the page it displays the following error:

 

Authorization Required 

You must first log in or register before accessing this page. 
If you have forgotten your password, click Forgot Password to reset it. 

 

We have already checked Public Profile Read, Create, Edit and Delet for the object, also check field level security on the fields. Not sure what is the problem.

 

Also the page has security enabled for the profile.

 

Would appreciate some help! Thanks!

 

-Peña

Andy BoettcherAndy Boettcher

In your Sites object - use the "Preview as Admin" link to get some insight into the error.

 

That error message is not helpful in of itself - but if you have APEX running behind your Page, it is probably a runtime error.

 

-Andy

Danny IncompanyDanny Incompany

The problem was that the visibility on the field level security from the public profile was set to visible, I UNCHECKED visible and it worked. Not sure what that visibility is for. The one on the field level security is set to visible.

 

Thanks anyway!