Problem
One some sites, and specifically sites created in some hosting environments, you might find that when your site is created, your product pages will be missing their "Add to Cart" button, like in the image below.
When you look into this in more detail, you will also notice an error reported from a web service.
Cause
Your URL provider value doesn't contain a valid configuration value. Instead, it is empty.
Resolution
The fix for this is quite simple, but it will require that you are comfortable with looking at and editing XML.
Open your web.config file found in the root of your site. We're using the Configuration Manager to do that here.
Find the line of code that specifies the "DNNFriendlyUrl" like shown below.
Note that the urlFormat attribute is currently empty. We highly recommend that you use advanced for the setting here. Doing so will allow your URL's to be human friendly, and search engine friendly. You'll also have a number of new features available to you that allow you to granularly adjust your URL's.
To be clear, you should find the line of code that looks like this:
<add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="" />
And update the urlFormat attribute to include advanced, like you see in the example below. Be sure to save this change as well.
<add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="advanced" />
Now, when you view your page again, you'll see the "Add to Cart" button. Please note that your URL's may have changed now though, so you'll need to navigate back to the product page again from the homepage. You might otherwise see a HTTP 404 Not Found error.
Need More Help?
Do you need more assistance with this article? Please review your support options.