Help Desk

Export Events link return error when filter bar is used

  • Posts: 12 Topics: 3
    | Permalink

    When I visit one of the calendars on this site and choose a month in the filter bar, the Export Events link return an error.

    Here’s an example. Visit this page, https://www.providencehigh.net/athletics/teams/soccer-boys/, choose August 2017 in the filter Bar and click Find Events.

    After the new calendar appears, click the Export Events button. The button returns this URL with a “This site can’t be reached” error. https://www.providencehigh.net/athletics/teams/soccer-boys/?tribe_events_cat=boys%20soccer&tribe-bar-date=2017-08&ical=1&tribe_display=month

    The Export Events links seem to work otherwise.

    Other pages to test are https://www.providencehigh.net/athletics/teams/football/, https://www.providencehigh.net/athletics/teams/girls-golf/ or any of the team pages under Athletics.

    Posts: 12 Topics: 3
    | Permalink

    I may have posted this in the wrong forum. I disabled the Filter Bar and the problem exists if I click ahead to the next month, then Export Events.

    Posts: 11239
    | Permalink

    Hi, David. Sorry you’re experiencing this.

    This isn’t currently a known issue so I’d suggest following these recommended troubleshooting steps for your own site:

    There might be some new updates available. Could you please make sure all your Modern Tribe plugins (and WordPress core) are at their latest versions?

    Once you verify you’re on the latest versions, please test to see if the issue is still happening for you.

    If it is, please follow our Testing for Conflicts Guide (basically switch to Twenty Seventeen theme and deactivate all plugins and custom code other than Modern Tribe plugins) and see if that helps narrow down the cause of this.

    Of course, we always recommend restorable database and file backups before modifying anything on your site.

    If it doesn’t, please enable WP_DEBUG and WP_DEBUG_LOG (which will create a file on your server at /wp-content/debug.log if there are any WP_DEBUG messages) and share any debug messages you see while trying to replicate this issue and doing other things on your site relevant to this ticket (such as visiting your site’s home page, events page, single-event pages, and anything else you can think to do).

    Then, please share your System Information (while in Testing for Conflicts Mode) in a Private Reply. That will give me a lot of extra information to help troubleshoot this.

    You might also see if you can spot any console errors at your site. (If needed, you may reference our KB article Using Google Chrome Developer Tools.) Note: I did see multiple console errors at your site, one reporting from our plugin but I’ve seen it before where it’s actually a plugin conflict (i.e. error goes away when conflicting plugin is deactivated). I also saw one regarding Google Maps API Key missing.

    Let us know what you find out.

    Thanks.

    Posts: 12 Topics: 3
    | Permalink

    Thanks, Cliff.

    So I created I created a brand new site, Twenty Seventeen as the theme. The site is only running freshly downloaded and installed Events Calendar and Events Calendar Pro. I added a Google Maps API key. I exported the events from the original site and imported them into the new site.

    I created a new page, http://wordpress-75502-304778.cloudwaysapps.com/shortcode-test/, and added the shortcode [tribe_events category=”football”].

    If I select a future month like October or November from the search bar I get a month of events. From that view, clicking Export Events returns this, http://wordpress-75502-304778.cloudwaysapps.com/shortcode-test/?tribe_events_cat=football&tribe-bar-date=2017-10&ical=1&tribe_display=month

    The debug log returns this.

    [31-Jul-2017 15:04:14 UTC] PHP Deprecated: Non-static method Tribe__Events__Aggregator__Records::prefix_meta() should not be called statically in /home/23750-75502.cloudwaysapps.com/dcbgrkjxrx/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Aggregator/Record/Queue_Processor.php on line 146

    System information to follow in private reply.

    Thanks for your help.

    Posts: 12 Topics: 3
    | Permalink
    This reply has been marked as private.
    Posts: 11239
    | Permalink

    Thanks for your effort and detailed report.

    That “Non-static method Tribe__Events__Aggregator__Records::prefix_meta() should not be called statically” error message should get fixed in an upcoming release. I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed, as it’s in the development team’s hands now, but I expect it’ll get done fairly quickly (weeks, not months).

    I apologize for this issue and appreciate your understanding and patience.

    ===

    I was not able to reproduce the issue you described with [tribe_events view=”month”], paging to October, and clicking the export button… although I did experience it at the link you shared.

    I see you have W3 Total Cache activated. I’d suggest trying one or more of the following:

    Please let me know how this goes for you.

    Posts: 12 Topics: 3
    | Permalink

    I deactivated W3 Total Cache and the problem is still there. W3 Total Cache is not installed on the original site that exhibits this problem.

    Re-saved permalinks and the problem is still there.

    Set time zone and the problem is still there. Time zone is set on the original site that exhibits this problem.

    Cleared cache on Chrome and Firefox and the problem is still there. Safari seems to be the only browser that can export the calendar in this scenario.

    Posts: 11239
    | Permalink

    Thanks for trying those things. Please re-share your System Information in a Private Reply.

    Posts: 12 Topics: 3
    | Permalink
    This reply has been marked as private.
    Posts: 12 Topics: 3
    | Permalink

    One other thing. I imported the ics file I was able to save from Safari into Google calendar and there are no events. Here are the contents.

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//wordpress-75502-304778.cloudwaysapps.com – ECPv4.5.9//NONSGML v1.0//EN
    CALSCALE:GREGORIAN
    METHOD:PUBLISH
    X-WR-CALNAME:wordpress-75502-304778.cloudwaysapps.com
    X-ORIGINAL-URL:http://wordpress-75502-304778.cloudwaysapps.com
    X-WR-CALDESC:Events for wordpress-75502-304778.cloudwaysapps.com
    END:VCALENDAR

    Posts: 11239
    | Permalink

    Got it. Thanks for the info, David.

    I’ve confirmed the bug as happening when there’s an empty iCal feed, and I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release.

    I apologize for this issue and appreciate your understanding and patience.

    Posts: 12 Topics: 3
    | Permalink

    But should the iCal feed be empty when there are events in the calendar? How is this related, if at all, to the original problem of bad links?

    Posts: 11239
    | Permalink

    If there are events, it should output an .ics download when that button is clicked. Here’s a video of me reproducing your reported issue: https://cl.ly/22082g1T1q42

    The empty month events with the button still being available was another bug discovered.

    Therefore, this is in Pending Fix status for 2 bugs.

    Thanks for reporting this issue; sorry it took me a bit to be able to replicate it.

    Posts: 6230 Topics: 17
    | Permalink

    Hello David!

    Just wanted to share with you that a new maintenance release (for the Week of 7 August 2017) is out, including a fix for the “Non-static method Tribe__Events__Aggregator__Records::prefix_meta() should not be called statically” error message.

    Find out more about this release → https://theeventscalendar.com/maintenance-release-week-7-august-2017/

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Victor

    Posts: 6230 Topics: 17
    | Permalink

    Hi David!

    Just wanted to share with you that a new maintenance release (for the Week of 5 March 2018) is out, including a fix for the iCal export button not working.

    Find out more about this release → https://theeventscalendar.com/maintenance-release-week-5-march-2018/

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Victor

    Posts: 65
    | Permalink

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

    | Permalink

The topic ‘Export Events link return error when filter bar is used’ is closed to new replies.