First of all: AWESOME work! :) If you join Gittip, I'll send something your way: https://www.gittip.com/on/twitter/coredumperror/
BEGIN:VEVENT
UID:calendar.1099.field_date@ttkherckenrode.be
DTSTAMP:20130802T181831Z
DESCRIPTION:Seizoen: 2011-2012 Zie http://ttkherckenrode.be/nieuws/2011/okt
/dag-van-jeugd-zaterdag-29-oktober.
DTSTART;TZID=Europe/Brussels:20111029T090000
DTEND;TZID=Europe/Brussels:20111029T190000
LAST-MODIFIED:20120229T145242Z
SUMMARY:Dag van de Jeugd
URL;TYPE=URI:http://ttkherckenrode.be/evenement/2011-2012/dag-van-jeugd
END:VEVENT
BEGIN:VEVENT
UID:calendar.1099.field_date@ttkherckenrode.be
DTSTAMP:20130802T181820Z
DESCRIPTION:.... Seizoen:\n\n * 2011-2012\n\nZie http://ttkherckenrode.be/n
ieuws/2011/okt/dag-van-jeugd-zaterdag-29-oktober.
DTSTART;TZID=Europe/Brussels:20111029T090000
DTEND;TZID=Europe/Brussels:20111029T190000
LAST-MODIFIED:20120229T145242Z
SUMMARY:Dag van de Jeugd
URL;TYPE=URI:http://ttkherckenrode.be/evenement/2011-2012/dag-van-jeugd
END:VEVENT
Note how the description is different!
Context: I've upgraded from date_ical 1.1 to 2.9, and am leveraging the new "iCal Fields" row style.
Setup: I'm using the "Content: Rendered node" views field in its iCal view mode as recommended. The "Seizoen" string is a taxonomy field label, the "2011-2012" part is a taxonomy field value. The remainder is a (body) text field.
Possibly related to this: the (body) text field uses Markdown. But it seems filters are not being run. When using the "Body" views field, I can understand how that could happen: date_ical might be doing something wrong. But even after switching to the "Content: Rendered node" views field, this happens. How the hell is that possible? Is date_ical doing something special for the "iCal" view mode perhaps? If that's not the case, then I'm completely puzzled.
Your latest commit seems to be somewhat related: http://drupalcode.org/project/date_ical.git/commitdiff/a0ce67d.
Happy to open a new issue for this if you judge it to be unrelated.
Comments
Comment #1
coredumperror CreditAttribution: coredumperror commentedWow, that's really strange. Is the top one the preview, or the bottom one?
Date iCal shouldn't be doing anything different between Preview and actual output, besides adding a few headers. In fact, here's the exact code that adds things to the output, which don't appear in the preview:
It's just two headers, and a flag for the devel module.
Is it possible that you're seeing this difference between preview and output due to a caching issue? I'd suggest clearing your cache and trying again.
It may be possible that something from the 1.x version of Date iCal got left behind when you upgraded. Uninstalling and deleting your date_ical folder, and then re-installing could potentially help.
Comment #2
coredumperror CreditAttribution: coredumperror commentedAs for the problem with the body field, please do open another issue.
Comment #3
Wim LeersThe top one is the one from the preview.
Caches were cleared.
I'm 100% certain no old code is left behind: it's a git checkout that I'm using and it does indicate nothing has been changed.
I'll open another issue for the body field problem.
Comment #4
coredumperror CreditAttribution: coredumperror commentedHmmm, is there any chance that you've got a module installed that outputs different text (maybe alternate labels?) depending on which user is logged in? The only thing I can think of that might be causing this discrepancy is that the preview is created using an administrative account (with all the permissions that entails), and the regular output is created by the anonymous user.
Comment #5
Wim LeersNope, this is a very, very simple site. From my
.mrconfig
file:Comment #6
Wim LeersOh and I'm now sending $0.25/week your way on https://www.gittip.com/coredumperror/, but you should really join the Drupal community! :) ;)
Comment #7
coredumperror CreditAttribution: coredumperror commentedWow, thanks! I don't really know anything at all about GitTip, though. How do I join the Drupal community?
Comment #8
coredumperror CreditAttribution: coredumperror commentedOK, let's dig into some serious debugging here. I think your best bet is to implement a few of the alter hooks that Date iCal offers, and see where the discrepancy is occurring in the rendering process.
First, install the Devel module. Then, add this function to a module on your site:
Like all hooks, replace MODULENAME with the name of the module, and then clear your cache to let Drupal pick up the new hook.
That
dd()
call will output the final rendered text of the calendar to the file/tmp/drupal_debug.txt
. So run the preview once, then download the feed normally, and check to see if the two copies of output in that file are different.If they're the same, then the discrepancy can't be Date iCal's fault, because that hook is run just before it sends the final data to Views. Something else must be messing with the output afterwards. Because of the nature of this discrepancy, though, I find this unlikely. But we need to test it first to rule it out.
If they're different then something earlier in the process is messing things up. In that case, replace the first hook with this function:
Then clear your cache again, and delete
/tmp/drupal_debug.txt
to make room for the new output. Then run the Preview and then normal output again, and inspect the file. You should see two arrays printed out for each of the events, once for each each of the two test runs. If the first set of arrays differs from the second, then something in the render process that comes before Date iCal is messing with the output. This seems like the most likely scenario to me.Now, if the outputs from these debugging steps are still the same for both Preview and normal output, then there's one more hook to try:
Once again, clear your cache and delete
/tmp/drupal_debug.txt
. Then run both Preview and normal output. This output will look similar to the previous test.If this test shows a difference, then this is a bug in the way the Date iCal Fields plugin converts text to iCal compliance. Though I have no clue at all how it could be different between Preview and normal output, unless the previous test is also showing different output.
Comment #9
coredumperror CreditAttribution: coredumperror commentedDid you find/solve the problem? I'm going to be out of town for the next week, so I'd like to close this ticket now, if your issue has been resolved.
Comment #10
Wim LeersI very much appreciate #8, but I still need to find the time to actually test it :)
Comment #11
coredumperror CreditAttribution: coredumperror commentedOK. Then please know that once you do have a chance to test it, I won't be able to respond until at least Wednesday or Thursday of next week.
Comment #12
coredumperror CreditAttribution: coredumperror commentedDid you ever get a chance to test this?
Comment #13
coredumperror CreditAttribution: coredumperror commentedI'm closing this ticket due to several weeks of inactivity. If you're still having an issue, please feel free to re-open it.
Comment #13.0
coredumperror CreditAttribution: coredumperror commentedReference to http://drupalcode.org/project/date_ical.git/commitdiff/a0ce67d.