Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We recently upgraded to U 4.10 and have just noticed the XML sitemap was throwing an error:
umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Count' at CallSite.Target(Closure , CallSite , Object )<br> at ASP._Page_macroScripts_CultivSearchEngineSitemap_cshtml.<>c__DisplayClass27.<ListChildNodes>b__26(TextWriter __razor_helper_writer) in d:\domains\cms47.dedicated.dev.plan9.co.uk\httpdocs\macroScripts\CultivSearchEngineSitemap.cshtml:line 31
We fixed this by changing line 31 to:
if (node.Level <= maxLevelForSiteMap && node.ChildrenAsList.Count() > 0)
Thanks for posting this Dan. Fixed my issue on 4.11.1 as well.
The Razor version would't work on my 4.11.2 installation until I changed the line Dan is referring to. Thanks, Dan!
That should probably be fixed in the original package.
You are welcome.
Thx, this fixed it in 4.11.4 aswel.
Still a valid fix in Umbraco 7.2 - Thanks Dan!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted