Wednesday, August 19, 2015

DXA Installation - A Tip

This blog post is to fix the Error "No valid localizations are active for this site. Check the site log, and that you have the right localization IDs configured in cd_dynamic_conf.xml", While Browsing a DXA website for the first time.


By looking at the error, it's looks like a configuration issue in "cd_dynamic_conf.xml", but it's more than that.

To fix the issue:

Check the “cd_dynamic_conf.xml” and make sure that right localization ids for publications configured

Browse the "cd_dynamic_conf.xml" from location "{WebsiteRootDirectory\bin\config}", make sure you have your website entry in there as below:

<Publications>
    <Publication Id="123">
       <Host Domain="{domain}" Port="{port}" Protocol="http" Path="" />
     </Publication>

</Publications>

"123" is the publication id (in tridion) of your website 
"{domain}" is the domain for your website
"{port}" is the port


Binaries are set to publish to broker database

Make sure the binaries (multimedia files) are set to publish to the "Broker" database, In the storage config file.

The DXA website’s Application Pool Identity must have “write” permissions on the root directory of the website.

So when a page of a DXA website is requested for the very first time. DXA tries to creates a directory “BinaryData” in the root directory of the website. This directory is used to hold the binary data used in the website. So when a page is requested, DXA copies the binary data (used on the page) from boker database to this folder. And use the binaries for subsequent requests of the page. 
So to create a directory inside the website root and to copy a binary files to the directory from broker DB, The website’s Application Pool Identity must have “write” permissions on the folder.


No comments:

Post a Comment