Monday, 5 January 2009

MODx Ditto Error

Just had this error after I upgraded a site from 0.9.6.2 to 0.9.6.3:

PHP error debug
Error: Missing argument 18 for ditto::determineIDs(), called in \manager\includes\document.parser.class.inc.php(769) : eval()'d code on line 792 and defined
Error type/ Nr.: Warning - 2
File:     \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) {

The solution was to overwrite the "assets/snippets/ditto" folder with the version from the previous MODx install. Or the other option would be to update the snippet calls as there must be a change in the new version of ditto.

1 comment:

Unknown said...

Very informative and unique tips dear. Thanks for sharing. Please visit https://goo.gl/TwgDjZ