We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16732
    • 592 Posts
    I have two sites that worked very well for over a year and recently the date sort have become crazy (no more sort by DESC createdon or pub_date ).

    Did anybody experienced the same problem?
    Cant it be an update PHP / MySQL who cause the problem ?


    site 1 : MODx 095, Ditto 1.0.2, PHP 5.2.4, Mysql 5
    site 2 : MODx 0961, Ditto 2.0.2 PHP 5.2.5, Mysql 5.0.51

    Thanks for your help.
      • 25663 MODX Staff
      • 12,272 Posts
      What’s your ditto call (assuming the ditto results are no longer sorting properly...)?

      You might also want to take a peek at the migration guide from 1.x to 2.x (and even grab the latest SVN trunk version there) at ditto.modxcms.com
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 16732
        • 592 Posts
        Hi Ryan,

        I really don’t understand all was ok since a few days and nothing was changed in the manager undecided

        It’s 2 sites hosted on different server.

        I have a lot of different Ditto calls for the site under 0951and all have problems
        Here 2 of them
        
        [[Ditto? &startID=`9` &summarize=`15` &tpl=`listingArticles` &trunc=`1` &truncLen=`300` &truncText=`Lire la suite` &sortdir=`DESC` &multilevel=`1` &filter=`hidemenu, 0|parent, 9,2` &sortBy=`pub_date` &paginate=`1` ]]
        

        [!Ditto? &startID=`[*id*]` &tpl=`listingArticles`   &truncLen=`500` &truncText=`Lire la suite`  &emptyText=`Aucun article` &paginate=`1` &summarize=`20` &sortBy=`pub_date` !]


        Site under 0961 call :
        [!Ditto? &tpl=`newsListChunk` &startID=`33` &summarize=`15`  &sortDir=`DESC` &filter=`tvnews_type,reference,2` &hiddenTVs=`news_type` !]


          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: laurentc at Jan 03, 2008, 07:40 AM

          I have two sites that worked very well for over a year and recently the date sort have become crazy (no more sort by DESC createdon or pub_date ).

          Cant it be an update PHP / MySQL who cause the problem ?
          Are you aware of any recent PHP/MySQL upgrades on these servers? If so, does it coincide with the appearance of this issue? There are any number of things that could have occurred, including a problematic restore from backup, upgrades, etc., but we’re going to need some additional information to diagnose this.
            • 16732
            • 592 Posts
            Hi jason

            For the site in 0961 there was an update to PHP 5.2.5 recently (under Plesk).
            After discussions with the site owner, it turns out that the Wayfinder menus are no longer either sorted by indexmenu huh shocked,

            I noticed that the the documents position in the manager was now the same as on the site menus ?!!

            I try to force Wayfinder &sortBy to "pagetitle" in the snippet call and in the "$wf->_config" but noting has changed :’( :’( :’(


              • 22303 MODX Staff
              • 10,725 Posts
              This honestly sounds like a problem with the MySQL configuration, or the PHP MySQL client, but I can’t think of any reason off the top of my head why this sorting would just stop working. I wonder if the default timezone is set in your PHP configuration. I know that is a common mistake when deploying PHP 5.2.x, since a default timezone is required, but not set in the distributed php.ini. Hopefully the people at Plesk have figured that out though...
                • 25663 MODX Staff
                • 12,272 Posts
                laurentc I’m at a loss on this one but wish you good luck! :/
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 16732
                  • 592 Posts
                  Quote from: OpenGeek at Jan 04, 2008, 08:20 AM

                  This honestly sounds like a problem with the MySQL configuration, or the PHP MySQL client, but I can’t think of any reason off the top of my head why this sorting would just stop working. I wonder if the default timezone is set in your PHP configuration. I know that is a common mistake when deploying PHP 5.2.x, since a default timezone is required, but not set in the distributed php.ini. Hopefully the people at Plesk have figured that out though...

                  Here what I found for timezone in my PHPinfo(s ... 2 sites)

                  I think it’s correct for France
                    • 2347
                    • 3 Posts
                    Are other sorting working?

                    I have similar issues with working modx sites when updated to MySQL 5.0.51 from MySQL 4.

                    I’m testing, but havn’t found anything yet...

                    UPDATED:

                    The problem seems to be a bug in MySQL 5.0.51 corrected in MySQL 5.0.52

                    http://comox.textdrive.com/pipermail/wp-hackers/2008-January/017200.html