We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30056
    • 7 Posts
    I’ve just tried upgrading from 0.9.6.1 to 0.9.6.2 using the Simple Scripts upgrade utility on my BlueHost account.

    When I then put my site online again and had a look, I was getting
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: Missing argument 18 for ditto::determineIDs(), called in /home/... /manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 792 and defined

    Error type/ Nr.: Warning - 2

    File: /home/... /assets/snippets/ditto/classes/ditto.class.inc.php

    Line: 571

    Line 571 source: function determineIDs($IDs, $IDType, $TVs, $orderBy, $depth, $showPublishedOnly, $seeThruUnpub, $hideFolders, $hidePrivate, $showInMenuOnly, $myWhere, $keywords, $dateSource, $limit, $summarize, $filter, $paginate, $randomize) {
    Has anyone else tried this BlueHost upgrade?
    Has anyone got any ideas as what may have gone wrong?

    I quickly hit the restore back to older version and everything is as was using 0.9.6.1, but I would like to take advantage of the latest updates.
    Any help would be appreciated, but I would like to take advantage of the latest updates.

    Tim
    • I believe that the Ditto files got updated but not the snippet (or vice versa); I had the same thing at one point (due to my own fault in that case) but I forget which way it went. In any case, the $randomize is a new feature, and the older one didn’t have it.
        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
        • 30056
        • 7 Posts
        Comparing the two files, they are different. Just not sure what the difference means?
        Susan it doesn’t appear to be $randomize that has been added.

        2.0.2 of Ditto Snippet

        $documentIDs = $ditto->determineIDs($IDs, $idType, $ditto->fields["backend"]["tv"], $sortBy, $sortDir, $depth, $showPublishedOnly, $seeThruUnpub, $hideFolders, $showInMenuOnly, $where, $keywords, $queryLimit, $display, $filter,$paginate, $randomize);

        2.1.0 of Ditto Snippet

        $documentIDs = $ditto->determineIDs($IDs, $idType, $ditto->fields["backend"]["tv"], $orderBy, $depth, $showPublishedOnly, $seeThruUnpub, $hideFolders, $hidePrivate, $showInMenuOnly, $where, $keywords, $dateSource, $queryLimit, $display, $filter,$paginate, $randomize);

        The difference between them is
        $sortBy, $sortDir appear to have removed
        $orderBy, $hidePrivate, $dateSource appears to have been added.

        Also I’ve tried creating a new installation of ModX 0.9.6.1 using the Simple Scripts and then upgraded that again using Simple Scripts and this works.

        I don’t think I’ve done much other than tweek colors in the standard css files and created a few pages, so I’m even more confused now.

        Tim
        • Ok, different reason for much the same problem then.
            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
            • 3749
            • 24,544 Posts
            Installing the newest version of Ditto after the upgrade would be something to try.
              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