Hi,

There seems to be a bug in the creation of the ics file. There are to many "new lines" in the file.
Google calendar seems to have some trouble importing such a file.

Has someone any idea to resolve this?

Thanks,

Jeroen

CommentFileSizeAuthor
#2 export.ics_.zip8.41 KBjeroen870
#2 Google error.png16.27 KBjeroen870
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

coredumperror’s picture

Could you please provide an example .ics file which is causing this problem? Also, please take a screenshot of the error you're getting from Google, and attach it to this issue.

jeroen870’s picture

FileSize
16.27 KB
8.41 KB
coredumperror’s picture

Hmmm, I see the problem. That extra newline at the beginning of the file does not belong.

I've seen this kind of problem before, though. It's almost certainly a bug in another one of your modules, which is accidentally including the php end tag (?>) at the end of one of its files. Including that tag leaves open the possibility that there is some whitespace after it, which causes this problem.

I would suggest searching for "?>" within all the .module, .inc, and .install files within your site's codebase, and looking for files which have it at the end of the file. Delete it from those files (there's probably only one of these), and this problem should go away.

If that doesn't work, let me know.

jeroen870’s picture

Just removed two php end tags, (I searched the whole module dir.) but still there are to many whitespaces. :-(
Any ideas?

coredumperror’s picture

The only other thing I can think of is to clear your cache, as the version of the .ics file with extra whitespace may have gotten cached.

If that doesn't work, disable other modules until the whitespace goes away. That will tell you which module is the culprit.

DamienMcKenna’s picture

Category: Bug report » Support request
Status: Active » Fixed

Closing this as the problem was on the individual site and isn't a general problem with the module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.