+ Start a Discussion
kkr.devkkr.dev 

Error on Sites Page Authorization Required

Hi,

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

 

Thanks

Aravind SriramAravind Sriram

Hi KKR.

 

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

 

Aravind Sriramaneni

kkr.devkkr.dev

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

Hi KKR,

 

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.

kkr.devkkr.dev

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.

kkr.devkkr.dev

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.