Raylife Site Creation Fails with 'Unexpected Error'
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- When creating a site using the Raylife AP or Raylife D2C templates, the process fails with the UI showing: "An unexpected error occurred."
- In the Liferay browser console, the "CommerceChannel is null" error is visible.
- This issue occurs only with the Raylife templates, while other templates function correctly without errors.
- Steps to reproduce:
1. Navigate to System Settings > Script Management.
2. Enable “Allow administrator to create and execute code in Liferay.”
3. Go to the Sites option to create a new site based on the RayLife D2C template.
Environment
- Liferay DXP Quarterly Release
Resolution
- The Raylife templates (Raylife AP and Raylife D2C) have been removed from newer Liferay versions and are no longer supported.
- Hence, Liferay recommends moving from the Raylife template to an alternative supported template to ensure compatibility and future maintainability.
- To remove these templates from your existing Liferay environment, follow these steps:
1. Navigate to the Control Panel: Configuration > System Settings > Module Container
2. In the Bundle Blacklist screen, add the following parameters under "Blacklist Bundle Symbolic Names":
com.liferay.site.initializer.raylife.d2c
com.liferay.site.initializer.raylife.ap
did-this-article-resolve-your-issue