WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] 404 error on foreign language pages (4 posts)

  1. drlovable
    Member
    Posted 2 years ago #

    We have a bi-lingual setup using wordpress network (multisite), not using wpml plugin. The event calendar plugin works great on the english site. It works great on the french site for the default view (fr/events/) and for viewing a single event.
    However, when we try to get to fr/events/upcoming/ or fr/events/month we get a "page not found" error.
    Any ideas how we might fix that?

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. drlovable
    Member
    Posted 2 years ago #

    For whatever reason, the functions tribe_get_listview_link() and tribe_get_gridview_link() are not always returning the correct path. Sometimes it's un-translated, sometimes it just returns to the current page.

    We ended up hardcoding the over-ridden view files to return what we needed in the french language.
    $upcoming = "upcoming";
    if(get_bloginfo('language')=="fr-CA") {
    $upcoming = "a-venir";
    }
    href='<?php echo get_site_url() . '/events/'.$upcoming;

  3. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hey drlovable. Glad to hear you figured this solution out, and apologies for the fact you had to do so without our assistance. Yes, this is an unfortunate bug with the code that we're working to iron out. The method you've found as a stopgap should work fine for now, though if you encounter any issues down the road please do let us know and we'll try to advise best we can.

    Thanks for your support so far.

  4. patrickvokeeffe
    Member
    Posted 1 year ago #

    hi drlovable - can you please tell me what file and where you added this override?
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.