We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3866 ☆ A M B ☆
    • 350 Posts
    Hi there,

    I've a strange issue going on with a site that I recently upgraded from 2.1.8 to 2.2.6 via 2.2.2, which makes use of Login and Personalize snippets, where when I log in the username disappears from three of the member's pages despite they are part of the same resource group for which users need to login.

    Two of the three pages make use of Gallery, although I don't think that has anything to do with it, as the third has only content like the majority of the other pages.

    The snippets in use include:

    Login 1.8.1
    Personalize 3.4.0

    I have two different chunks which display depending upon whether a user is guest or authorized:

    [[!Personalize? &yesChunk=`authorized` &noChunk=`guest`]]


    This works fine on 5 of the 8 resources that are members only but for some reason the username disappears on the other three - sometimes its there and sometimes its not.

    I've flushed permissions and I've cleared the cache.

    I did have a TV which I had used originally before the Personalize snippet to select one chunk or another manually, but I have now removed this as I thought it was causing a conflict. I've cleared the cache manually as well.

    This is a very odd problem, but one I would like to resolve.

    There are no errors in the log which makes it even harder to pinpoint. The site was running without these issues until the upgrade.

    Any suggestions please.

    This question has been answered by boomerang. See the first response.

      Helen Warner
      Number one pixel!
      Proud to be linked with MODX at Crimson Pixel
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      Can you show both of your chunks?
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 3749
        • 24,544 Posts
        Try adding the &ph property, which sets the name of the placeholder for the username:

        [[!Personalize? &ph=`username` &yesChunk=`authorized` &noChunk=`guest`]]



        (In the Chunk)


        [[+username]]


        Add &fullName=`1` if you want the full name instead of the username.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
        • discuss.answer
          • 3866 ☆ A M B ☆
          • 350 Posts
          I rechecked the chunks with fresh eyes having spent some time working on resolving this, and just noticed that in the authorized chunk the snippet [[Profile]] was called, I think this was when the site was originally built couple of years back with an early version of Login.

          I've removed this and added the placeholder suggested by Bob and it now seems to work. I await feedback from the client, but I think it has been resolved.

          Thanks for the responses wink
            Helen Warner
            Number one pixel!
            Proud to be linked with MODX at Crimson Pixel