We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48586
    • 78 Posts
    I had this issue before several months ago, and I was able to find an old thread that fixed it, but after searching for a while I am unable to find the post again.

    The problem I am having is that sometimes going to my site, in place of the logo is just a 1 (that's a number one). Other times, the logo loads fine.

    Has this happened to anyone else? Any suggestions? Thank you.

    (This is for MODX Revolution)

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

      • 42562
      • 1,145 Posts
      What call brings about this logo image?
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
        • 48586
        • 78 Posts
        It's a snippet that takes a set cookie based on user location, and just modifies where it should link for homepage. I'm going to try removing that snippet and just set the logo image to link to "/" and see if that fixes the issue
        • discuss.answer
          • 3749
          • 24,544 Posts
          How about setting it to this:


          <a href="[[~[[++site_start]]]]">


          (assuming that it's Revolution).

          For Evolution, I think it would be this, but I can't remember for sure:

          [~[(site_start)]~]


          My guess on the snippet is that the part that returns the URL is inside an if statement that's not always true. When it fails, the snippet falls through to the end where there's no return statement and it returns the default value for a successfully completed script, which is 1.

            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
            • 48586
            • 78 Posts
            Thank you, that's works great for now.
              • 3749
              • 24,544 Posts
              I'm glad I could help. smiley
                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