The Problem
Recently, we encountered a weird problem where one of our sites in Experience Editor will resolve to default website and not to the correct site. This happened when an author or developer opened Content Editor and tried to select one of the pages in the SXA site and then clicked on Experience Editor in Publish tab to open the page in Experience Editor, the page opened with the following errors -
On checking the logs, we found that logs contains following entries for each SXA site -
The Solution
We started validating what is wrong with our site definitions. To our surprise, everything configured in site definitions appeared normal except the fact that a recent change was introduced to enable Enforce version presence.
We soon found out a KB from Sitecore talking about the same problem - https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1002873
According to it -
An SXA site might not be resolved so that it falls back on the default website intermittently. The issue occurs when the enforce version presence feature for the SXA site is enabled. The warning "Incorrect site definition" can be found in the logs.
And the solution suggested by them is as follows-
- Upgrade a Sitecore XP instance to Sitecore XP 10.3 and SXA 10.3.0.
- Download and install the latest cumulative hotfix compatible with the affected product version:
- For Sitecore XP 10.1 and SXA 10.1.0, see KB1001756
- For Sitecore XP 10.0 and SXA 10.0.0, see KB1001755
- For Sitecore XP 9.3 and SXA 9.3.0, see KB1001754
To confirm the issue, we reverted our change for Enforce Version Presence and that stopped the warnings in our logs for Incorrect Site Definitions.
Thanks for reading. Hope it helps you!
Comments
Post a Comment