Hello,
I am using Date iCal to import a Google calendar feed exactly as described on the Date iCal Page under the instructions for How to import an iCal feed from another site. When I import a simple test calendar with a small number of events, they have no dates, and I get the repeated log message:
Warning: date_create() expects parameter 1 to be string, object given in date_feeds_set_target() (line 55 of /srv/bindings/e67c2055272d412a818e9d7ccc7ef0e7/code/sites/all/modules/feeds/mappers/date.inc).
I am mapping the date start and date end ical fields to fields of type date. The start date is above the end date in my mapping list.
What am I missing here? What could be causing this error?
Thanks in advance,
Iver
Comments
Comment #1
coredumperror commentedCould you give an example .ics file from Google that is causing this? I'll need an actual file so I can trace down the bug.
Comment #2
aeons commentedThis .ics exhibits the same behaviour. It's not from Google however.
webcal://kampe.dhf.dk/Cal/Holdkampprogram.ashx?key=8aba349c-328b-4f2d-89...
Comment #3
coredumperror commentedI believe this may be related to #1886580: Importing VEVENTs with RRULEs breaks sometimes, which beeradb has determined to be a bug in Feeds, rather than Date iCal. If the fix for Feeds that he posted in #1989196: Never Pass FeedsDateTime objects into date_create doesn't fix this for you, please let me know.
Comment #4
iband commentedHi,
The fix for Feeds posted in #1989196: Never Pass FeedsDateTime objects into date_create states "There may be other issues at play, but just adding a check within the mapper to ensure a FeedsDateTime object isn't being passed into date_create fixes the issue for me." I have two questions:
1. This fix cannot be addressed by configuration, i.e. I need to apply the patch myself, right? Is there a way to generate the patched module on drupal.org or do I just need to edit my own copy?
2. If the FeedsDateTime object isn't being passed into date_create, how are we creating the start and end dates in the target nodes? Is there another mechanism?
Thanks,
Iver
Comment #5
coredumperror commented1. Yes, you need to edit the file in the Feeds module. Look up the instructions on Drupal.org for applying patches. Fortunately, this patch is extremely simple, so just opening the file in a text editor can tell you how to edit the file manually.
2. I honestly haven't had a chance to look deeply into this issue yet, or beeradb's fix for it. I'm very busy at work these days, and haven't had a chance to dedicate any significant time to work on Date iCal.
Comment #6
iband commentedI applied the patch to feeds, and it solved the problem.
Thanks!
Comment #7
cdmo commentedDitto #6, thanks!
Comment #8
jlyon commentedDitto #6