• After upgrading to the latest version 3.1.1 the ical and Google Calendar feed is broken.

    Attempting to subscribe to a calendar (via shortcode or direct link) fails with a not found message. Testing with a ‘curl’ on https://domain.org/feed/eo-events/ returns a 404 in version 3.1.1.

    Downgrading to version 2.3.17 works fine.

    Have tested with all other plugins turned off and the 2016 theme and it still fails.

    What can be done to get this working in 3.1.x the same as the 2.3 versions.

    https://wordpress.org/plugins/event-organiser/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Kevin,

    The demo site is working http://wp-event-organiser.com/demo/ (running 3.1.1 also), and there’ve been no recent changes to that functionality so I suspect there isn’t a bug as such.

    You’ve already ruled out plug-in/theme compatibility issue, so I think this might be a rewrite issue. Once you’ve upgraded to 3.1.1, try going to Settings > Permalinks and clicking ‘Save Changes’, and see if that solves the issue.

    Thread Starter Kevin Cristiano

    (@kcristiano)

    Thanks for the response. I did a rewrite flush (via cli and through permalinks) and no change.

    Any other thoughts?

    This is a link to a dev site I have to test this https://vzdev.tadpole.cc/calendar/

    Plugin Author Stephen Harris

    (@stephenharris)

    What if you try yoursite.com?feed=eo-events?

    Thread Starter Kevin Cristiano

    (@kcristiano)

    404 errors.

    Plugin Author Stephen Harris

    (@stephenharris)

    Ok, that’s odd. That would suggest it’s not a rewrite issue.

    Without taking the time to investigate the site itself I’m not sure what to suggest. But here’s what I would do:

    1. Verify that this line is called: https://github.com/stephenharris/Event-Organiser/blob/3b76c7b3729ad1bd1863ba77d9993e03731c6e0c/includes/event-organiser-register.php#L210 (it’s conditional on a setting, so you may want to check Settings > Event Organiser > General first to ensure that the feed is enabled

    2. Then verify it is present in the global $wp_rewrite (after hook init is triggered);

    3. Use a rewrite analyser plugin (Monkeyman Rewrite is my personal favourite) to check that the rewrite rule is being added.

    4. On template_include filter check the global $wp_query.

    5. The last thing you can do is check WP_Query class and try to determine why it’s reach its 404 decision.

    I don’t see a 404, actually, it seems like the site starts generating a feed and fails:

    > curl -v https://vzdev.tadpole.cc/feed/eo-events/
    < HTTP/1.1 500 Internal Server Error
    < Date: Tue, 19 Jul 2016 22:06:21 GMT
    < Server: Apache/2.4.10 (Debian)
    < Last-Modified: Mon, 18 Jul 2016 14:20:48 GMT
    < ETag: "c4ce38c6a03d4c8055bb9c3bdcaee750"
    < Link: <https://vzdev.tadpole.cc/wp-json/>; rel="https://api.w.org/"
    < Link: <https://vzdev.tadpole.cc/?p=0>; rel=shortlink
    < Content-Description: File Transfer
    < Content-Disposition: attachment; filename=event-organiser_2016-07-19.ics
    < Pragma: 0
    < Expires: 0
    < Strict-Transport-Security: max-age=15768000
    < Connection: close
    < Transfer-Encoding: chunked
    < Content-Type: text/calendar; charset=UTF-8;
    <
    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//The Village Zendo//NONSGML Events//EN
    CALSCALE:GREGORIAN
    X-WR-CALNAME:The Village Zendo - Events
    X-ORIGINAL-URL:https://vzdev.tadpole.cc/events/
    X-WR-CALDESC:The Village Zendo - Events
    BEGIN:VEVENT
    UID:20150930T1808Z-1443636501.4-EO-8111-1@69.167.137.102
    STATUS:CONFIRMED
    DTSTAMP:20160719T180621Z
    CREATED:20150917T003911Z
    LAST-MODIFIED:20150927T112358Z

    That’s the same bug we were seeing on our production site, villagezendo.org, until we rolled back from Event Organiser 3.1.1 to 2.3.17.

    Thanks,
    Jesse

    Plugin Author Stephen Harris

    (@stephenharris)

    Jesse,

    I don’t think this is the same bug. Your’s might be related to https://wordpress.org/support/topic/call-to-a-member-function-format-on-boolean?replies=3 – (though you may have error reporting turned off). In any case, check your error logs and open a new thread if the problem persists.

    Thread Starter Kevin Cristiano

    (@kcristiano)

    It’s the same issue – empty square is looking at the same dev site. He just ran a curl on the url, while I let WP handle it. WP returned a page not found for me, but the curl is finding the true error:

    PHP Fatal error: Call to a member function format() on boolean in /home/vzendo/public_html/wp-content/plugins/event-organiser/templates/ical.php on line 61

    It looks like we are failing on the timezone functions.

    FYI – php 5.6.22, apache 2.4.10 and MySQL 5.6 on Debian

    Plugin Author Stephen Harris

    (@stephenharris)

    Thanks for the clarification, in that case, see the article I linked to above, since I think that might be the cause.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Ical and Google Calendar Feed broken in 3.x (latest(’ is closed to new replies.