We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30884
    • 142 Posts
    Wow, gotta thank you all for posting in this thread, I was wondering what the heck was going on with the new test server I’m working on. Indeed it’s 5.0.51a causing some problems. Ok, I’ll have a look into updating the Ubuntu MySQL install.

    Cheers

    Jamie
      p i x e l p u s h e r e x t r o d i n a i r e
      A x i s A n i m a t i o n . c o m
      • 14254
      • 35 Posts
      Hi all,

      I’ve got the same problem occurring and I’m not sure what the problem is. My menus in Wayfinder are not sorting correctly.

      I’ve tried adding the operators to my Wayfinder call, such as &sortBy=`menuindex` and so on...but it keeps sorting by page ID.

      I saw that there was a bug in some version of MySQL that could cause this problem, but I’m not on that version. Here are the specs on my server.

      LAMP server
      MySQL version = 5.0.45
      PhP version = 4.4.7

      Any thoughts or suggestions would be really appreciated. I’m sort of at my wits end here with this.

      Thanks in advance!

      -Justin
        • 22303 MODX Staff
        • 10,725 Posts
        Quote from: jknupp at Jan 28, 2009, 03:02 PM

        MySQL version = 5.0.45
        I’ll bet that is the MySQL client API version and that the server is indeed running 5.0.51.
          • 14254
          • 35 Posts
          It’s possible. I’ll have to dig a bit deeper and check.

          Strange things is, we’ve got several other clients running sites with the same hosting company, and their installs are all working correctly.

          Do you think it would be worth trying a reinstall of ModX?

          -Justin
            • 3749
            • 24,544 Posts
            I would first check the home screen of phpMyAdmin. It should show the server MySQL version at the top left, and the client MySQL version at the top right.

            If you’re running on 5.0.51, it would cause exactly what you’re seeing.

              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
              • 18668
              • 25 Posts
              I’m still having problems, probably related to the dodgy 5.0.51a-community. That was installed on our server and was (or so I thought) stopping sorting from working, so I asked the host to upgrade. They’ve now upgraded to MySQL 5.0.67a-community, but I still get the same problem. Every other post I’ve found says that the problem resolves itself after upgrading MySQL, so I’m not sure quite why mine is still being difficult. Curiously I’ve got some sites suffering but not others (those installed on another server and copied across have never stopped working, even when the server was using 5.0.51a). This is all kinda urgent now, as my client is keen for it to be working so the site can go live. Any ideas?

              MODx: 0.9.6.3
              MySQL: 5.0.67a-community
              PHP: 5.2.6
                ******************
                Matthew Dawkins
                www.matthewdawkins.co.uk
                We make web sites for churches
                Follow me on Twitter: twitter.com/chapter9
                ******************
                • 3749
                • 24,544 Posts
                Be sure to clear the site cache and browser cache/cookies before checking for improvement. wink

                  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
                  • 18668
                  • 25 Posts
                  D’oh!! I normally check that sort of thing, too... thanks BobRay!

                  *slinks quietly into a corner*
                    ******************
                    Matthew Dawkins
                    www.matthewdawkins.co.uk
                    We make web sites for churches
                    Follow me on Twitter: twitter.com/chapter9
                    ******************
                    • 3749
                    • 24,544 Posts
                    LOL. I almost didn’t post because I was afraid I’d insult you with the suggestion. Believe me, I had to get bit a number of times before I learned to make it automatic.

                    Glad you got it worked out. 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
                      • 12844
                      • 59 Posts
                      [!Ditto? &parents=`6` &depth=`1` &tpl=`testimonial` &orderBy=`menuindex` &sortDir=`ASC` !]

                      I’m getting a MySQL error, and my server is running 5.0.67-community.

                      If I remove the orderBy parameter it works okay, and I end up with the result I want (results in order of creation, ascending). But I’d like to know why this is happening and if there’s anything I can do to stop it as I may need to customise the order in the future.

                      « MODx Parse Error »
                      
                      MODx encountered the following error while attempting to parse the requested resource:
                      
                      « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'menuindex' at line 4 »
                      
                      SQL: SELECT DISTINCT sc.pagetitle,sc.description,sc.content,sc.published,sc.id FROM `abacus_modx`.`modx_site_content` sc LEFT JOIN `abacus_modx`.`modx_document_groups` dg on dg.document = sc.id WHERE sc.id IN (19,20,21,22,23,24,25,26,27,28,29,30,31,32) AND sc.published=1 AND sc.deleted=0 AND (sc.privateweb=0) GROUP BY sc.id ORDER BY sc.createdon ASC, sc.id menuindex


                      To me, it looks like the query really is at fault (why are two other fields in ORDER BY at the end?) - could this be a bug in Ditto? I have MODx 0.9.6.3 and Ditto 2.1+.

                      Thanks.