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 

Error on Sites Page Authorization Required


       Very few users are getting this Authorization Required error on Sites Page.Any Idea?



Aravind SriramAravind Sriram



Authorization Required page will be displayed If any unhandled exception is exists in the page/Class.


Aravind Sriramaneni

Thanks Aravind, Only Few set of users are getting this error.Do you know a way to display error message  with line number so as to debug ?

Aravind SriramAravind Sriram



Are you handling the exceptions generating in the class?

I will debug the class code just by logging into the exception causing user If I am in your position.

First put a try catch block for the every method.


Potentially, One other situation could cause this problem. Please the page and class permissions provided for every profile or not.

Thanks Aravind, We only have one guest user for sites.Every user will be a guest user if they go sites page.


Aravind SriramAravind Sriram

Share the class code.

I am not able to debug the error as only few  users on public domain are getting this error.

Aravind SriramAravind Sriram

Share the class code.. May be we will try to find the code block causing exception.