Hello again
I’m getting another error now:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: file_get_contents(http://www.vitalized.co.uk/index.phpi): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Error type/ Nr.: Warning - 2
File: C:\Inetpub\vhosts\vitalized.co.uk\httpdocs\manager\includes\document.parser.class.inc.php(705) : eval()’d code
Line: 114
The call I’m using is:
[!DittoCal? &calSource=`
http://www.vitalized.co.uk/index.php?id=8` &dayNameLength=`1`!]
I’m not using Friendly URLs is that why I’m gettingthe error?
Many thanks
Quote from: kylej at Jul 17, 2006, 10:15 AM
Lexxus,
I have released a new version that outputs debug information. Can you load the new version and set the param &debug=`1` That should help me figure out what your error is. You can get the new version from the repository.
Other changes include:
- Placeholder output support - there is now a parameter you can set to output the calendar to a placeholder.
- Future Month Removal - The next link will not be displayed when user reaches the last post.
- When a user clicks a day in the calendar the month displayed will stay the same when the new page loads. The post will then have the class specified in the param &activeDay applied to it.
Thanks Kyle

Great news !
Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
Still get an error!
Below is the debug report
DittoCal Debug Output
Initial Data from Json
[!Ditto?startID=`3` &summarize=`100` &format=`json` &dateFormat=`%d-%m-%Y` &sortDir=`desc`!]
Data after JSON decoding
Filter Settings
Filter Month:
Filter Year:
Processing Error
There was an error processing the json data. Set the debug param equal to 1 for more info.
Can you post some links to the json page and to the page that calls the calendar. that might help me find your error. It looks like the json page is not getting processed.
Great job Kylej! Before diving into this wonderful snippet (which I want toi use as global calendar of events on some site) I’d ask a question.
Is there a way to filter posts wich DittoCal should read? For example like tags in Ditto?
If there’s no such function - can u give tips on how to manage that?
UPD: I also have "Invalid argument supplied for foreach" error:(
json page:
http://www.promosound.org/_system/json
call: [!DittoCal? &calSource=`
http://www.promosound.org/_system/json` &dayNameLength=`1`!]
result page:
http://www.promosound.org/artists/rock/35
yentsun,
you can use all of dittos filtering options to setup the json data however you want. That is where the calendar gets its data so whichever posts you include in the ditto call will be included in the calendar.
If you need help with that error I need more info to help solve it.
updated previous post with links.
About filtering: I would like to have a one-big json output for the whole site and dozens of artists with calendars showing events with their presence only. So I guess I still need DittoCal filter.
Thanks
yentsun, couldn’t you jsut craete a seperate json file for each artist and then have a seperate dittocal call for each artist as well? I think adding the the filtering capabilities is kind of overload since you can do it all with ditto.
can you turn the debug on in your dittocal snippet call, that should help me find the problem. Also make sure you are using the latest version, 1.1
Quote from: kylej at Aug 09, 2006, 01:36 PM
can you turn the debug on in your dittocal snippet call, that should help me find the problem. Also make sure you are using the latest version, 1.1
Damn, I by some reason was using 1.0..but was sure I use 1.1.
Now I upgraded to 1.1 and have "Processing Error"
http://www.promosound.org/artists/rock/35