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
kushanxpkushanxp 

Another Problem with sites

Hi,

 

I have a custom site and its (https://kushanxpx-developer-edition.ap1.force.com/SMS/) there I have a page and I should be able to load the page by this URL https://kushanxpx-developer-edition.ap1.force.com/SMS/StudentDetails?id=a0R90000000NuNDEA0

 

But its saying "Error: Error occurred while loading a Visualforce page. " But the page is loading without an issue if I gave the normal URL without going through the site. which is:   https://c.ap1.visual.force.com/apex/StudentDetails?id=a0R90000000NuNDEA0

 

Can someone help me on this. I'm so stuck in this :(

Best Answer chosen by Admin (Salesforce Developers) 
kushanxpkushanxp

Got it Fixed :), Problem was the assosiated object in the query was not in the "deployed" mode. I changed that object's deployment status to "Deployed" then the problem is solved.  :D

All Answers

Alok_NagarroAlok_Nagarro

Hi,

 

First make sure you have included page in site as well as you have given all required permission to object, fields that u r using in your page for that profile (site user).

kushanxpkushanxp

All the privileges are there, That page has been assigned to a profile and that profile is within that page access permission list. Sometimes the page displays correctly but sometimes not. There cannot be an issue with privileges, Because normally it says "insufficient privileges" if there such issue. What can be the cause for this.

 

This is the message im getting when I tried to access this URL.. (https://kushanxpx-developer-edition.ap1.force.com/SMS/StudentDetails?id=a0R90000000NuNDEA0)

 

"Error: Error occurred while loading a Visualforce page.  "

 

But when I give it as this (https://c.ap1.visual.force.com/apex/StudentDetails?id=a0R90000000NuNDEA0) It loads without a problem.

kushanxpkushanxp

Got it Fixed :), Problem was the assosiated object in the query was not in the "deployed" mode. I changed that object's deployment status to "Deployed" then the problem is solved.  :D

This was selected as the best answer
sukumarsukumar

I also have some problem.

 

I want to pass https://c.ap1.visual.force.com/apex/EmployeeInfoTest?id=a0C9000000BaAh8 url after user clicks login button in login page.

 

Can you please tell me how to do that.