We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 400
    • 40 Posts
    Invalid argument supplied for foreach()


    in classes/ditto.class.inc.php

    Line:  412   
      Line 412 source:  foreach ($documents as $null=>$doc) {  
    


    My code in MODx (9.5.0. / 4.3.10 / Linux):

    [!Ditto? &startID=`18,19` &tpl=`Liste_Wohnungen` &summarize=`5` &multiLevel=`0` &truncLen=`200` &paginate=`1` &paginateAlwaysShowLinks=`1`&dateFormat=`%d-%b-%y %H:%M` &sortBy=`pub_date`!]
    


    These two folder are published and teach (18,19).

    Greeting and thanks
      • 18397
      • 3,250 Posts
      This is a known issue with Ditto 1.0.2 and is well documented in the forums. A quick search will lead you to the solution or you can upgrade to Ditto 2 RC2 which does not suffer from that issue.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        It just means that there are no child documents for it to process; put some dummy news articles in those folders and it will go away.

        The newer versions check for that condition.
          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
          • 400
          • 40 Posts
          I use nevertheless ditto 2.0 RC2, only has forgotten to mention. rolleyes


          It just means that there are no child documents for it to process; put some dummy news articles in those folders and it will go away.

          I also made that, but this is not a correct solution.