logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Tuesday, November 1, 2022 11:50:50 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
I don't know how Web.sitemap is used, but there is an incorrect url
<siteMapNode url="~/Members/MyAccount" title="Account">
This should be MyOrders instead of MyAccount
MyAccount throws a 404.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

nadeem  
#2 Posted : Wednesday, November 2, 2022 11:14:54 AM(UTC)
nadeem

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System
Joined: 10/11/2018(UTC)
Posts: 110

Thanks: 19 times
Was thanked: 18 time(s) in 18 post(s)
Web.sitemap shows the general navigation of the store pages. It has been for creating breadcrumbs mainly under MyAccount section in AbleCommerce Gold. In the ac9, this file is not being used since there are no breadcrumbs under the account section.
charles25686713  
#3 Posted : Monday, March 6, 2023 3:31:19 PM(UTC)
charles25686713

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 7/1/2022(UTC)
Posts: 71

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: nadeem Go to Quoted Post
Web.sitemap shows the general navigation of the store pages. It has been for creating breadcrumbs mainly under MyAccount section in AbleCommerce Gold. In the ac9, this file is not being used since there are no breadcrumbs under the account section.


Hi Nadeem, based on this post, I deleted our web.sitemap.

Then when I found how to create the sitemap.xml, and it failed, I found this error in the logs:

---
Exception: The file /Web.sitemap required by XmlSiteMapProvider does not exist. Stack Trace: at System.Web.XmlSiteMapProvider.CheckSiteMapFileExists() at System.Web.XmlSiteMapProvider.GetConfigDocument() at System.Web.XmlSiteMapProvider.BuildSiteMap() at System.Web.XmlSiteMapProvider.get_RootNode() at System.Web.SiteMap.get_RootNode() at AbleCommerce.Code.CommonSiteMapProvider.GetSiteMapItems(SiteMapOptions options) at AbleCommerce.Code.CommonSiteMapProvider.DoSiteMap(SiteMapOptions options, Boolean compress, List`1& messages) at
[and more!]
---

so the web.sitemap is required?

Can you shed some light on this please? Should I manually update the web.sitemap file? Or is this an obsolete code reference that fails hard if the file isn't there?

Thanks,
Charles
nadeem  
#4 Posted : Tuesday, March 7, 2023 5:18:19 AM(UTC)
nadeem

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System
Joined: 10/11/2018(UTC)
Posts: 110

Thanks: 19 times
Was thanked: 18 time(s) in 18 post(s)
Yes, the sitemap provider expects the Web.sitemap file on the website root. So you don't need to delete this. And since the sitemap data is generated dynamically, you don't need to update the file manually. If you just keep the empty file (with base xml nodes), it will still generate the sitemap without any issue.

For example, the only the following info in Web.sitemp will still work

Code:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode />
</siteMap>


The bottom line is, the file should be present at website root.
thanks 1 user thanked nadeem for this useful post.
charles25686713 on 3/8/2023(UTC)
Users browsing this topic
Guest (4)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.