Skip to main content

Accessing PageBuilder in Local Results in "Source Code Error"

Symptoms

  • When running Arc XP locally in docker, accessing http://localhost/pagebuilder/pages results in an error message: Source Code Error: An Error Has Occurred in Site Service Configurations

  • Clicking on Create Page results in the same error.

pbeng_source_code_error_site_service_configs.png

Cause

This error occurs when CONTENT_BASE and ARC_ACCESS_TOKEN have not been configured in .env, located in the bundle root.

Solution

  1. In the bundle root, open .env in a text editor.

  2. Uncomment the lines for CONTENT_BASE and ARC_ACCESS_TOKEN

  3. Configure CONTENT_BASE to the URL for your Arc environment to provide the source for content in your local environment, for example, https://{your-environment}.arcpublishing.com/

  4. Configure ARC_ACCESS_TOKEN with an Access token created from Developer Center in the same environment  configured in CONTENT_BASE

  5. Save the .env and restart fusion.

More Information