Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shane Harris 6 posts 68 karma points
    Jun 22, 2014 @ 11:29
    Shane Harris
    0

    Error loading CultivSearchEngineSitemap.cshtml

    After installing there appears to be no partial page created for the page to reference.

    Version 7.1.4

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
    Error loading MacroEngine script (file: CultivSearchEngineSitemap.cshtml)
    </urlset>
    

    Any ideas??

    TIA

  • Sarah 40 posts 104 karma points
    Jun 22, 2014 @ 21:54
    Sarah
    102

    I just had the same problem.

    Open the CultivSearchEngineSitemap.cshtml file. Line 30 is:

    if (node.Level <= maxLevelForSiteMap && node.ChildrenAsList.Count > 0)
    

    Change it to:

    if (node.Level <= maxLevelForSiteMap && node.ChildrenAsList.Count() > 0)
    
  • Shane Harris 6 posts 68 karma points
    Jun 23, 2014 @ 10:58
    Shane Harris
    0

    Awesome, you're a legend! Worked a treat.

  • Stephen Adams 23 posts 43 karma points
    Jan 04, 2015 @ 19:33
    Stephen Adams
    0

    This worked perfectly for me! 

  • Stephen 'KINK' Wilde 23 posts 94 karma points
    Jan 11, 2015 @ 01:48
    Stephen 'KINK' Wilde
    0

    Made a new topic instead.

  • Steven Baker 6 posts 76 karma points
    May 12, 2015 @ 00:23
    Steven Baker
    0

    Well spotted, Sarah

  • David Podmore 15 posts 73 karma points
    May 26, 2015 @ 14:06
    David Podmore
    0

    Perfect!! Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft