Hi guys,
I’ve been trying to sort this out but to no avail.
I upgraded to 0.9.6.3 as I thought it was a good version, I use it on another install.
My site (www.ayonline.co.uk) is now showing an error message
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: array_multisort() [function.array-multisort]: Argument #3 is expected to be an array or a sort flag
Error type/ Nr.: Warning - 2
File: /home/****/public_html/assets/snippets/ditto/classes/ditto.class.inc.php(562) : eval()’d code
Line: 1
Parser timing
MySQL: 0.0132 s (47 Requests)
PHP: 0.2498 s
Total: 0.2629 s
Please help me work out what to do to fix this.
I thought that maybe it was not on the latest Ditto so I installed that 2.1+ and it didn’t make any difference.
I upgraded from 0.9.6.1 if that helps and have not altered any of my Ditto calls that were all working just fine before the install upgrade.
Please help me get this back online or I’ll be shredder fodder......
cheers
Steve
Humm, making sure both Ditto (in manager and i assets) should have resolved this. In 0963 Ditto 2.1 is used. not sure what it was in 0961. From what i read in the forum all the array_multisort() issues had been resolved. What is the Ditto call that you have on the home page? maybe something has changed in the syntax, for example use &parents=`` rather than $startID=``.
thanks for your thoughts, I would agree that changing the snippet and the files in the assets/snippets/ditto should have resolved this issue
my calls are as follows
[!Ditto?&parents=`210` &randomize=`1` &tpl=`leisureTPL` &display=`1`!]
[[Ditto?documents=`[*eventID*]` &depth=`1` &tpl=`eventsHome` &hiddenFields=`eventLink, eventdate_human, event_details, event_endDate, eventLocation, event_contact, event_map, event_startDate, event_image` &display=`1` &noResults=`homeEvent_noResult`]]
[!Ditto?&parents=`174` &levels=`2` &randomize=`1` &tpl=`featuredArticle_home` &display=`1` &hiddenFields=`articleTitle, articleImage, articleText, articleID`!]
Hopefully there is not too much wrong here as these worked fine in 0.9.6.1 which I think used Ditto 2.0.2