We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    On one install, I have an extra resource at the top of the tree with no name and a resource ID of (). I’m sure it happened back when I was battle testing the UI trying to create things with no name and such. I expected to find it in the DB but there’s nothing in the site_content table but the legit resources. I can’t delete it because MODx thinks it’s the site_start page (which is really the resource below it in the tree). It’s been there through many upgrade installs.

    It doesn’t seem to hurt anything, but I’d like to get rid of it. Any ideas appreciated.
      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
      • 3749
      • 24,544 Posts
      Bump . . . . Anybody?
        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
        • 26903
        • 1,336 Posts
        Have you tried clearing your site cache? The () mean it has no id from the db as you’ve spotted, also what happens if you change the site start page in system settings to another id than the one your using and then try and delete it.
          Use MODx, or the cat gets it!
          • 3749
          • 24,544 Posts
          Quote from: shamblett at Jul 19, 2009, 08:22 AM

          Have you tried clearing your site cache? The () mean it has no id from the db as you’ve spotted, also what happens if you change the site start page in system settings to another id than the one your using and then try and delete it.

          Thanks. I’m afraid I’ve cleared the cache (and browser cache/cookies) many times with no effect. I’ve been afraid to try your second suggestion for fear that my real site start page would be deleted.

          I tried duplicating the real site start page, setting site_start to the dupe, then deleting the () one. That deleted the real original start page and left the ghost resource in the tree. I guess that means the bogus one definitely points to the original site start page, but without sharing its ID. I can’t figure out why the code that draws the tree thinks there’s a resource with no ID, no title, and no entry in the site_content table. huh
            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
            • 28215
            • 4,149 Posts
            Quote from: BobRay at Jul 19, 2009, 11:48 PM

            I tried duplicating the real site start page, setting site_start to the dupe, then deleting the () one. That deleted the real original start page and left the ghost resource in the tree. I guess that means the bogus one definitely points to the original site start page, but without sharing its ID. I can’t figure out why the code that draws the tree thinks there’s a resource with no ID, no title, and no entry in the site_content table. huh

            Is there a resource in your site_content table with no ID, or with an ID of 0?
              shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
              • 3749
              • 24,544 Posts
              Is there a resource in your site_content table with no ID, or with an ID of 0?

              First thing I checked. All have IDs > 0 and there are no duplicate IDs. sad
                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
                • 3749
                • 24,544 Posts
                Far down the tree, I had a resource with the same name as the resource with ID=1.

                Are duplicate Resource pagetitles supposed to be allowed? They’re still creatable.
                  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
                • Duplicate Resource pagetitles should definitely be allowed. The only thing that shouldn’t be is URL aliases at the same level/depth in a site tree, but only if you have FURLs on and are not using paths (or are moving a document to the sam level).
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 3749
                    • 24,544 Posts
                    Quote from: rthrash at Aug 12, 2009, 01:04 PM

                    Duplicate Resource pagetitles should definitely be allowed. The only thing that shouldn’t be is URL aliases at the same level/depth in a site tree, but only if you have FURLs on and are not using paths (or are moving a document to the sam level).

                    I think that means there’s a bug in the Revo code that draws the tree. I’m pretty sure the duplicate resource was in a sub-section of the tree with a different URL alias.

                    I’ll see if I can reproduce the effect.
                      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