WordPress.org

Forums

Events Manager
[resolved] iCal import problems (13 posts)

  1. webmystery
    Member
    Posted 1 year ago #

    I've been having the same issue described in this post. It looks like it has been marked resolved as unreproduceable but with out any concrete resolution.
    http://wordpress.org/support/topic/ical-ics-files-not-importing-into-icalendar

    The iCal imports form this site; http://artvallejo.org give me this error:
    "The data downloaded from http://artvallejo.org/events.ics isn’t valid."

    But iCal imports from the same version of Events Manager and WP from another site I manage, http://vallejozencenter.org/ , work fine.

    No luck with the following troubleshooting methods:
    Switched to a generic template
    Replaced all of the Events Manger plugin files.
    Disabled all plugins except Events Manager

    Could it have something to do with the far greater number of events at artvallejo.org? I tried importing a single event. Same error with events from artvallejo.org, but single events from vallejozencenter.org work fine.

    I opened both events in a text editor and found that there are line breaks missing in the artvallejo.org files. This is what broken event looks like in TextWrangler:

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//wp-events-plugin.com//5.52//ENBEGIN:VEVENT
    UID:791fb6d1-1906-4bcd-94ee-85b8043a00e1
    DTSTART:20140321T023000Z
    DTEND:20140321T040000Z
    DTSTAMP:20140314T172723Z
    SUMMARY:Third Thursday Jazz Nights - Koham Press - Thu\, Mar 20\, 2014 - 7:30 pm - 9:00 pm
    DESCRIPTION:Join Leo Cavanagh on Guitar and Guy Arrostuto on Piano\, for the first Third Thursday Jazz Night!\n\n$5 at the door - all proceeds go to the musicians!
    LOCATION:Koham Press
    URL:http://artvallejo.org/events/third-thursday-jazz-nights/
    END:VEVENTEND:VCALENDAR

    ...and this is a functional event

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//wp-events-plugin.com//5.52//EN
    BEGIN:VEVENT
    UID:5256ec9d-4d4e-4652-8df4-2c7e3d3103fb
    DTSTART:20140405T070000Z
    DTEND:20140405T180000Z
    DTSTAMP:20140307T211454Z
    SUMMARY:Buddha’s Birthday - Vallejo Zen Center - 5 Apr 14 00:00
    DESCRIPTION:Zazen at 9:30 AM\n\nLecture at 10:00 AM\n\nCeremony at 10:20 AM
    LOCATION:Vallejo Zen Center
    URL:http://vallejozencenter.org/calendar/buddhas-birthday-4
    END:VEVENT
    END:VCALENDAR

    In the broken event the PRODID and BEGIN:VEVENT lines and the END:VEVENT END:VCALENDAR run together. When I break up those two items with a carriage return the event imports with no problem.
    (When I copied and pasted the broken event here the line breaks in the broken file appeared, so apparently those are the wrong kind of line break. TextWrangler shows an upside-down question mark there when I enable "show invisibles".)

    Question is -- Why is this happening and how do I fix it?

    Other differences between artvallejo.org and vallejozencenter.org:
    artvallejo.org uses a lot of different locations with the google map enabled; vallejozencenter.org only has one location.
    artvallejo.org events frequently have featured images, links to other sites and more verbiage; vallejozencenter.org events are, well, simpler and more Zen.

    Thanks for any advise - I'd really like to get this to work.

    https://wordpress.org/plugins/events-manager/

  2. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Assuming the Events Manager and WordPress versions are the same on both sites, is there something else that's different? Maybe they use different server technology, for example?

  3. webmystery
    Member
    Posted 1 year ago #

    WP and Events Manager versions are the same

    vallejozencenter.org (the one that works) is on GoDaddy

    artvalleo.org is on a hosting server run by a local guy here in Benicia - baicmultimedia.com - where i have a reseller account. I can actually walk in and talk to them if I need something changed:
    Apache version 2.2.26
    PHP version 5.3.27
    MySQL version 5.1.67-rel14.3-log
    Architecture x86_64
    Operating system linux

    What else might be relevant? - would the linux version or server config have something to do with the kind of line feed used? Why would only those two lines be affected instead of the whole .ics file?

    I'm tempted to try to find the relevant file in the plugin and hack it to change the type of line feed used - but I'm guessing it isn't that simple.

    Thanks!

  4. webmystery
    Member
    Posted 1 year ago #

    I see that in templates/ical.php there is a preg_replace command in both places where I'm seeing the problem line breaks.

    echo preg_replace("/([^\r])\n/", "$1\r\n", $output);

  5. angelo
    NetWebLogic Support
    Posted 1 year ago #

    Have you tried to temporarily:

    - deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    - switching to the default theme to rule out any theme-specific problems

  6. webmystery
    Member
    Posted 1 year ago #

    Thanks, Angelo --
    Yes I tried both of those things as I mentioned above. I never post in support forums without trying basic troubleshooting first.

    Did you look at the other trouble report I linked at the top of my first post? I was also able to reproduce 286blue's report of a warning from the validator "Line endings must be a Carriage Return/Line Feed (CRLF) pair." I think I'm seeing the same bug. That issue was closed after 286blue stopped responding to Marcus' questions - but no actual fix is mentioned. In that thread Marcus said he saw the problem but didn't know how soon he'd be able to get to it.

  7. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    What version of Events Manager are you using?

  8. webmystery
    Member
    Posted 1 year ago #

    Events Manager Version 5.5.2 - I made sure it was up to date and even deleted and replaced all the files before reporting here. WP is version version 3.8.1
    Thanks

  9. webmystery
    Member
    Posted 1 year ago #

    It works when I edit templates/ical.php, and change line 20 from this:
    PRODID:-//wp-events-plugin.com//".EM_VERSION."//EN";
    to this:
    PRODID:-//wp-events-plugin.com//".EM_VERSION."//EN\n";

    ... and also line 80 from this:
    END:VEVENT";
    to this:
    END:VEVENT\n";

  10. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Ok, thanks. That indicates it's a problem with new lines in the file when running on Linux. I'll pass this along to the developers. Thanks again for the info.

  11. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    Hi, was looking into this, but problem with your solution is it creates warnings when validating here:

    http://icalvalid.cloudapp.net/

    Whilst it might fix something for you, it may break something for others. I don't think it's linux-specific because we test on mainly on linux servers (e.g. the demo site), plus loads more people would be reporting this.

    Since we can't reproduce it ourselves, if you can recreate this bug again and give us some access, we could have a closer look to see what the problem is.

  12. webmystery
    Member
    Posted 1 year ago #

    Thanks Marcus --

    That validator tool was gave the same warning about line breaks both before and after I added my solution, but the before version wasn't working for me as two of the lines were running together. I'm happy to give you any access you'd like WP/ FTP/...? I only have to switch back to the default ical template to reproduce it.

  13. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 7 months ago #

    sorry for the delay in getting back to you, we hadn't forgotten! If you still have this problem, please go to our contact us page and send over some WP/FTP info and we can try it out ourselves.

    Please make sure you include a link to this page so we know who you are.

    We mainly test on linux so it'd be good to see it on a machine that has the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic