We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42146
    • 73 Posts
    Man where to start on this... using personalize extra on my site. i think this is a personalize issue... Personalize gets called twice. one place in head to display logged in user name, or a login link. then also using it again for the wayfinder calls, if logged in or not logged in.

    Site is a membership driven site. so different pages show depending on what group they belong to. IE trial / paid members everything seems to work correctly.. except when a user buys a membership. they are then automatically logged out, and have to manually log back in. only way we could get the ACL's to work right....

    but what ends up happening is that when logged back in the user doesn't get the new menu options. they have the correct member roles assigned the new paid member pages should show, but instead just show the trial member pages. The user has been removed from the trial member group as well


    if the user clears browser cache, or goes to a different browser, or incognito mode, the correct menu shows... but will not show the correct menu on original browser until a browser cache clear is done.

    this is the last major issue to fix before a official launching, and start of marketing.



    section of code with two calls..

       <div class="small-5 large-2 columns">
                  <div id="login">
                              [[!Personalize? &yesChunk=`header_for_members` &noChunk=`header_for_guests` &ph=`name`]]  
                  </div>
                </div>
    		</div>
    		<div class="row">
     
            
    				[[!Personalize?
        &yesChunk=`@CODE:          <div id="main_nav"> <div class="small-12 hide-for-small">
                [[!Wayfinder? &startId=`0` &level=`0` &outerTpl=`Flex-4-Top-outerTpl` &outerClass=`button-group` &rowTpl=`Flex-4-Top-rowTpl` &parentRowTpl=`Flex-4-Top-parentRowTpl` &innerTpl=`Flex-4-blankTpl` &scheme=`https` & cacheResults=`0` &excludeDocs=`1,2,20,30,40`]]
                [[!Wayfinder? &startId=`0` &level=`0` &outerTpl=`Flex-4-wrapperTpl` &rowTpl=`Flex-4-wrapperTpl` &parentRowTpl=`Flex-4-Dropdown-innerParentTpl` &innerTpl=`Flex-4-Dropdown-wrapperTpl` &innerClass=`f-dropdown` &innerRowTpl=`Flex-4-Dropdown-innerRowTpl` &scheme=`https` & cacheResults=`0` &excludeDocs=`1,2,20,30,40`]]
              </div>
              <div class="small-12 show-for-small">
              [[!Wayfinder? &startId=`0` &outerTpl=`responsiveOuterTpl` &rowTpl=`responsiverowTpl` &parentRowTpl=`responsiverowTpl` &innerRowTpl=`responsiveinnerTpl` &innerTpl=`responsiveblankTpl` &scheme=`https` & cacheResults=`0` &excludeDocs=`1,2,20,30,40`]]
              </div>
              `
    
        &noChunk=`@CODE:          <div id="main_nav"> <div class="small-12 hide-for-small">
                [[!Wayfinder? &startId=`0` &level=`0` &outerTpl=`Flex-4-Top-outerTpl` &outerClass=`button-group` &rowTpl=`Flex-4-Top-rowTpl` &parentRowTpl=`Flex-4-Top-parentRowTpl` &innerTpl=`Flex-4-blankTpl` &scheme=`https` & cacheResults=`0` &excludeDocs=`24,41,48,65,67`]]
                [[!Wayfinder? &startId=`0` &level=`0` &outerTpl=`Flex-4-wrapperTpl` &rowTpl=`Flex-4-wrapperTpl` &parentRowTpl=`Flex-4-Dropdown-innerParentTpl` &innerTpl=`Flex-4-Dropdown-wrapperTpl` &innerClass=`f-dropdown` &innerRowTpl=`Flex-4-Dropdown-innerRowTpl` &scheme=`https` & cacheResults=`0` &excludeDocs=`24,41,48,65,67`]]
              </div>
              <div class="small-12 show-for-small">
              [[!Wayfinder? &startId=`0` &outerTpl=`responsiveOuterTpl` &rowTpl=`responsiverowTpl` &parentRowTpl=`responsiverowTpl` &innerRowTpl=`responsiveinnerTpl` &innerTpl=`responsiveblankTpl` &scheme=`https` & cacheResults=`0` &excludeDocs=`24,41,48,65,67`]]
              </div>`
        &ph=`personalize.name`
    ]]
    
    		</div>
    




    In thinking about things more i guess i could combine the two personalize calls, i'll give that a go around.
    i'll play with the wayfinder call cached vs uncached as well... but this is a odd one, as only fix seems to be a browser cache clear in order to get the right menu to show.





    modx 2.2.8

    PHP Version 5.3.22

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

      • 42146
      • 73 Posts
      Hmm....

      seems if i'm not logged into manager, or logged in via any other tabs, and create an account, then buy the subscription, that the menu then works. seem issue comes up when in manager, or have a second tab open and logged into the site on multiple tabs and then buy the subscription that the menu caching issue presents it'self.

      is there a way to flush all sessions for a single logged in user via a snippet?
      • discuss.answer
        • 3749
        • 24,544 Posts
        I think so, but do you really need to do that? In the normal course of things, would a user ever be logged into the Manager and buy a subscription?

        It's always a good idea to test code in a separate browser where you're not logged into the Manager. Otherwise, MODX will be confused about your login status.
          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