DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

HTML Module Content in Edit Mode Doesn't Match Live and Vice Versa

Sort:
You are not authorized to post a reply.





New Around Here





    Hello all,

    We side-graded from DNN Evoq to Platform Edition 9.10.2 a few months ago, and recently we have noticed issues between edit mode and live (non-edit) mode in HTML modules. Sometimes after we publish updated HTML module content, the updated content is visible only in edit mode and the old content continues to display in live mode. Sometimes this updated content is only visible in live mode and the old content continues to display when we go into edit mode.

    We don't have this problem with any of the other modules we use on the site, only the HTML module. Is this a known issue and is there a fix or workaround to resolve? We have previously reported another issue with the HTML Module (where it won't display the file folders when you click Browse Server). Is it possible this may be related?

    Thanks for any help - this has been a big problem for us!

    Heather






    Veteran Member





      mast likely this is due to workflow not set to "direct publish" in module settings.





      Veteran Member





        Sebastian is right... In your migration, the setting to change the HTML workflow was missed. The content is awaiting approval, which is why you see it in Edit Mode and not otherwise.

        So, be sure to update the workflow setting in the module(s), then save your changes again. The alternative might involve a bunch of SQL. :)





        New Around Here





          Sebastian and Will,

          Thanks for taking the time to reply, especially on a Friday. I checked module settings and they are set to Direct Publish and Apply Workflow to Module. Could you suggest any other module or site settings to check?

          Thanks,

          Heather





          Advanced Member





            Heather, can you try open your browser in 'private' mode and press CTRL-F5? Could also be a caching issue.
            Mariette Knap
            Microsoft MVP Alumni





            Veteran Member





              Posted By H. Hugh-Jones on 10/7/2022 12:53 PM
              Sebastian and Will,

              Thanks for taking the time to reply, especially on a Friday. I checked module settings and they are set to Direct Publish and Apply Workflow to Module. Could you suggest any other module or site settings to check?

              Thanks,

              Heather

              Then the content is not published yet.  If you have access to query the database, you'll want to search for all of the content for that ModuleID only in the HtmlText table and make sure the most recent version you expect to see has "1" for the value in the IsPublished table, and not "0."  

               






              New Around Here





                Hi Mariette and Will, thanks for the suggestions! The content is published. We can see the new content when we access the site through its IP address. (ie both in edit mode and outside edit mode there). The problem is when the site is accessed through its public-facing domain name: HTML module content in edit mode doesn’t match what is outside of edit mode there.

                I’d like to update our sitewide cache settings to see if that will help shake things loose on the domain side. I’ve located this article from Mitch Sellers: https://cdn.iowacomputerg...-overview-202007.pdf
                Are there any other cache-related documents specifically for Platform that might help?






                Veteran Member





                  Posted By H. Hugh-Jones on 10/11/2022 7:32 AM
                  Hi Mariette and Will, thanks for the suggestions! The content is published. We can see the new content when we access the site through its IP address. (ie both in edit mode and outside edit mode there). The problem is when the site is accessed through its public-facing domain name: HTML module content in edit mode doesn’t match what is outside of edit mode there.

                  I’d like to update our sitewide cache settings to see if that will help shake things loose on the domain side. I’ve located this article from Mitch Sellers: https://cdn.iowacomputerg...-overview-202007.pdf
                  Are there any other cache-related documents specifically for Platform that might help?
                   

                  Oh....  Then do you have a CDN or firewall (WAF) in front of your website?  It sounds like either one of those or your web browser might have cached the content.  You'll want to clear cache at each level. 

                  The DNN cache usually organically refreshes somewhat regularly, so if the DNN cache was the issue, then it should have seemingly gone away in a day or so.  However, clearing the cache can be tried.  A reference link to do this is below.  

                   






                  Veteran Member





                    Oh, one more thing... 

                    The cache settings for your website may or may not be getting in the way.  Be sure to double-check the following when you're looking at the Servers > Server Settings > Performance configuration view in the persona bar.  

                    • Authenticated Cacheability:  ServerAndNoCache (default) 
                    • Unauthenticated Cacheability:  ServerAndNoCache (default) 

                    If you want to change either value, I'd suggest changing Unauthenticated Cacheability to Public.  However, this is not likely to be your fix right now. 

                    You are not authorized to post a reply.

                    These Forums are dedicated to the discussion of DNN Platform.

                    For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                    1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                    2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                    3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                    4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                    5. No Flaming or Trolling.
                    6. No Profanity, Racism, or Prejudice.
                    7. Site Moderators have the final word on approving / removing a thread or post or comment.
                    8. English language posting only, please.

                    Would you like to help us?

                    Awesome! Simply post in the forums using the link below and we'll get you started.

                    Get Involved