We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3996
    • 7 Posts
    i seem to be having some trouble sorting documents by their defined menu sort order. i searched the forums and found http://modxcms.com/forums/index.php?action=printpage;topic=6207.0 that, which features a question from a user named deep who seemed to have been experiencing the same issue. however, his problem stemmed from using mysql 4.

    i am running:

    windows xp
    apache 2
    php 5.2.5
    mysql 5.0.45
    modx 0.9.6.1p2

    i am using firefox 3.0.1 to manage the page. i have also tried sorting the document tree with different criteria in the manager to no avail. to all appearances the documents seem to only be sorting by id or created date in ascending order. any help would be much appreciated.
      • 3749
      • 24,544 Posts
      Usually, this is a MySQL issue. 5.0.51 is notorious for this.

      It’s not the best solution, but I fixed it on one site by removing the GROUP BY clause in the Wayfinder code.
        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
        • 2472
        • 151 Posts
        I wonder if one can check the mySQL version from php and fire an alternate sql statement when in 5.051?
          A thing of beauty is a joy forever ( John Keats)
          • 3996
          • 7 Posts
          thanks bobray.  a bit of research turned up some confirmation that this is indeed a mysql issue and that there is a patch available.  unfortunately it won’t be committed in the community server until 5.0.52 is released.

          http://bugs.mysql.com/bug.php?id=32202
            • 3749
            • 24,544 Posts
            Quote from: brandan at Jul 20, 2008, 10:15 AM

            thanks bobray. a bit of research turned up some confirmation that this is indeed a mysql issue and that there is a patch available. unfortunately it won’t be committed in the community server until 5.0.52 is released.

            http://bugs.mysql.com/bug.php?id=32202

            I hope that happens in my lifetime. wink

            That bug (and 5.0.51) have been around for ages.
              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
              • 22303 MODX Staff
              • 10,725 Posts
              I think Sun has ruined our favorite open source database (big surprise eh?). Since 5.0.58 has been release in Enterprise for quite some time now, you have to assume they are delaying these fixes on purpose to encourage the purchasing of licenses... sigh...
                • 3996
                • 7 Posts
                time to migrate to postgre? smiley i’ve been looking for an excuse to work with it for a while.
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Yeah, I’ve been casually cruising through the Manager scripts looking for hard-coded mysql calls with the thought of getting that cleaned up once and for all, then it would be a piece of cake to just create a new db class file for postgres, or any other database. I’ve kind of had sqlite in mind for a while now. Would be great for uber-cheap hosting with no database, but php5.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Quote from: sottwell at Jul 21, 2008, 12:02 PM

                    Yeah, I’ve been casually cruising through the Manager scripts looking for hard-coded mysql calls with the thought of getting that cleaned up once and for all, then it would be a piece of cake to just create a new db class file for postgres, or any other database. I’ve kind of had sqlite in mind for a while now. Would be great for uber-cheap hosting with no database, but php5.
                    This something you’re planning on committing to SVN? That’d be a nice little fix to say the least.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      No, I’ve got enough on my mind without trying to figure out svn too. I’ll just give it to you guys to do with whatever you want. I’ll provide a changelog along with the files. But don’t hold your breath.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org