You are here:
Use Administrator Preview Mode to Troubleshoot Salesforce Sites
If you see errors on site pages and you can't determine the cause, use administrator preview mode to look at them in context and in greater detail.
If you see errors on site pages and you can't determine the cause, use administrator preview mode to look at them in context and in greater detail.
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Developer, Enterprise, Performance, and Unlimited Editions |
| User Permissions Needed | |
|---|---|
| To create and edit Salesforce Sites: | Customize Application |
The detailed error messages in administrator preview mode are driven by the <site:previewAsAdmin /> component in your
Visualforce error pages. Starting with Summer '10, new organizations include the
<site:previewAsAdmin /> component
by default in standard error
pages. You must add the component manually to all custom error pages and
pages from older organizations. We recommend that you add it right before the
closing </apex:page> tag, like
this:
<site:previewAsAdmin />
</apex:page><site:previewAsAdmin />
component contains the <apex:messages
/> tag, so if you have that tag elsewhere on your error pages, you
will see the detailed error message twice.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.