WPML
Status
Resolved
Related plugin/theme
The Events Calendar

Overview of the issue

If you are using The Events Calendar plugin and you have several events on the archive page, you will find that the pagination links for secondary languages do not work. Instead, they point to links like (/?:page|seite|Seite)/(d_)/ or (/?:page|pàgina|página|página)/(d_).

Workaround

Please be sure to make a full backup of your site before proceeding.

  1. Edit the file located in wp-content/plugins/the-events-calendar/src/Tribe/I18n.php.
  2. Look for line 189.
  3. Replace:
    remove_filter( 'locale', $force_locale );
  4. With:
    remove_filter( 'locale', $force_locale );
     
    foreach ( (array) $args[1] as $domain => $file ) {
        // Reload it with the correct language.
        unload_textdomain( $domain );
     
        if ( 'default' === $domain ) {
            load_default_textdomain();
        } else {
            Common::instance()->load_text_domain( $domain, $file );
        }
    }

Next steps

This issue has been reported to The Events Calendar team for a permanent fix. However, you can only help to move things along by expressing your interest in this effort via their support forum.

All known issues →