Copied to clipboard

Flag this post as spam?

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


  • Jannik Nilsson 38 posts 81 karma points
    Aug 20, 2009 @ 13:29
    Jannik Nilsson
    0

    Dissapearing and reappearing content

    I have a strange problem with dissapearing/reappearing content.

     

    I've tried to delete umbraco.config and republished all content but it still happens

  • Chris Koiak 700 posts 2626 karma points
    Aug 20, 2009 @ 14:08
    Chris Koiak
    0

    Jannick,

    You need to provide more info than this. What is disappearing? Is it full pages, do they result in 404?

    Is it pages output via xslt?

    Do the missing pages appear in umbraco.config on republish, if not what's the status of the nodes in the umbraco tree?

    Cheers,

    Chris

  • Jannik Nilsson 38 posts 81 karma points
    Aug 21, 2009 @ 08:55
    Jannik Nilsson
    0

    Its not whole pages that are doing the magic trick, its fx. the title of the page or an element that has been updated that switches back and forth between the old and the new content.

  • Chris Koiak 700 posts 2626 karma points
    Aug 21, 2009 @ 13:38
    Chris Koiak
    0

    Is this reproducable in your development environment?

    When content disappears, what does the umbraco.config show? Does it have the old or new content?

    This sounds like a caching issue. Have you tried shift-F5 refreshing your pages, and does the old content still appear?

    Chris

     

  • Jannik Nilsson 38 posts 81 karma points
    Aug 24, 2009 @ 10:03
    Jannik Nilsson
    0

    I've tried clearing the browser cache, pressed ctrl+F5, deleted the umbraco.config and republished the entire site and I still get the problem.

    An example is a submenu where the items are rendered then when I press F5 they sometimes dissapear and then reappear when I press F5 again.

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Aug 24, 2009 @ 10:45
    Peter Dijksterhuis
    0

    Does that happen in all browsers? (Try firefox, chrome and IE). If things aren't visible, can you check the source-code if it is missing there?

     

  • Jannik Nilsson 38 posts 81 karma points
    Aug 24, 2009 @ 10:54
    Jannik Nilsson
    0

    It happens in all browsers and on different computers.

    The source  code shows that the list items aren't even rendered with no content.

    This is the XSLT I'm using to output the specified menu, id 1126 is the parent folder that the items live in:

    <xsl:variable name="root" select="umbraco.library:GetXmlNodeById('1126')" />
    <div class="hd">
    <p>
    <xsl:value-of select="$root/data [@alias='title']"/>
    </p>
    </div>
    <div class="links">
    <ul>
    <xsl:for-each select="$root//node">
    <li>
    <a href="{umbraco.library:NiceUrl(@id)}">
    <xsl:variable name="title">
    <xsl:choose>
    <xsl:when test="./data [@alias='title'] != ''">
    <xsl:value-of select="./data [@alias='title']" />
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="@nodeName" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:attribute name="title">
    <xsl:value-of select="$title"/>
    </xsl:attribute>
    <xsl:value-of select="$title"/>
    </a>
    </li>
    </xsl:for-each>
    </ul>
    </div>

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Aug 24, 2009 @ 11:19
    Peter Dijksterhuis
    100

    Try to disable caching on the macro (Developer -> Macro's) and see if that makes any difference.

  • Jannik Nilsson 38 posts 81 karma points
    Aug 24, 2009 @ 13:08
    Jannik Nilsson
    0

    I've now turned off cache on macros and set the xml cache setting in the config to false.

  • Jannik Nilsson 38 posts 81 karma points
    Sep 01, 2009 @ 16:58
    Jannik Nilsson
    0

    The issue is still not solved, the problem occurs with macros and umbraco:items.

  • Ron Brouwer 273 posts 768 karma points
    Sep 01, 2009 @ 17:02
    Ron Brouwer
    0

    Hi Jannik,

    Are you running on a webgarden (multiple worker processes)? That wil cause this to happen.

    Ron

  • Jannik Nilsson 38 posts 81 karma points
    Sep 02, 2009 @ 08:45
    Jannik Nilsson
    0

    Yes Ron, thank you for pointing that out :) That little invisible '2' instead of '1'.

    The problem have dissapeared, and now I will most certainly never forget that again.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft