> For the complete documentation index, see [llms.txt](https://docs.sharinpix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sharinpix.com/faqs/i-got-an-invalid-page-error-message-when-using-a-visualforce-page-embedding-a-sharinpix-album-in-sal.md).

# I got an 'invalid page' error message when using a Visualforce page embedding a SharinPix album in Salesforce Community. What should I do?

When adding a Visualforce page embedding a SharinPix album to your Community's page layout, it may happen that the VF page displays the images correctly, but gives the following error message when interacting with the images present on the page:

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2FSsAMeBqVC96N972H2fK5%2Fimage%20-%202026-01-29T180032.797.png?alt=media\&token=c753adf5-fc8e-4713-b96b-cf2662b5b8a5)

This behaviour occurs because by default Visualforce pages do not work on page layouts in Lightning Communities.

For more information about this issue as well as how to resolve the same, kindly refer to the following link:

[Visualforce Page on Page Layout in Lightning Community](https://github.com/edelrabe/Salesforce-Recipes/wiki/Visualforce-Page-on-Page-Layout-in-Lightning-Community)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sharinpix.com/faqs/i-got-an-invalid-page-error-message-when-using-a-visualforce-page-embedding-a-sharinpix-album-in-sal.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
