Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our next available supporter will start replying to tickets in about 11.49 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 12 replies, has 3 voices.

Last updated by jonathanS-28 1 year, 3 months ago.

Assisted by: Bobby.

Author Posts
January 21, 2023 at 12:13 am #12862575

jonathanS-28

My calendar is at hidden link. It looks normal but if you are on the English version and choose a month from the drop down, use the month navigation arrows to the left of the drop down, or select a different view (list, day, week, etc) these all link to the Spanish version. I've cleared cache but the problem persists. Can you please advise?

January 23, 2023 at 10:06 am #12871103

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hello there,

Could you please update your The Events Calendar PRO plugin and check if the issue persists with its latest version ?

If that's the case, could you please try the following in your test site:
- Make a full backup of you site.
- Add this code into your functions.

use TEC\Events\Custom_Tables\V1\Models\Occurrence;

add_filter( 'tribe_events_views_v2_view_template_vars', function( $vars ) {
    if ( isset( $vars['events'] ) ) {
        foreach ( $vars['events'] as &$event ) {
            if ( ! empty( $event->permalink ) ) {
                $event->permalink = get_permalink( Occurrence::normalize_id( $event->ID ) );
            }
        }
    }

    return $vars;
} );

Regards

January 23, 2023 at 3:12 pm #12874315

jonathanS-28

Hi Andrés. Thanks for your reply. My version of the plugin is already at the newest so I added the code here to functions.php and it didn't resolve the problem. I cleared server and browser cache and also tried it in an incognito window.

January 24, 2023 at 1:26 am #12876391

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

If the possible test with an incognito window and let me know your results.

When I test now it looks like it's working ok.

All events are linked to the correct language versions for me.

January 24, 2023 at 2:50 pm #12883041

jonathanS-28

Hi Bobby. I tried it in an incognito window before writing the last reply. I am seeing the events in English but the URL is still in Spanish.

January 24, 2023 at 2:51 pm #12883051

jonathanS-28

The links on the calendar page include things like .../mes/... in them even on the English side.

January 24, 2023 at 6:51 pm #12884451

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

These are the steps I follow:

1. Visit hidden link

2. Click to next month to go to February

3. Hover over National Substance Use Disorder Summit Feb 1 and I see the URL hidden link

4. Hover over Feb 14 Addressing Behaviors That Challenge and shows URL
hidden link

However, when I do view the main URL I am on now it shows hidden link

Please verify that we are seeing the same results or are you still seeing these calendar links to point to /mes/

Screen Shot 2023-01-24 at 10.47.31 AM.png
Screen Shot 2023-01-24 at 10.47.25 AM.png
January 24, 2023 at 8:45 pm #12884913

jonathanS-28

That's correct. The event links appear correctly but the page's "structural" links, those for changing the month, the calendar view (list, day etc) and those kinds of things, include Spanish words.

January 24, 2023 at 10:03 pm #12885167

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I have created a sandbox environment for us to test with minimal settings.

If possible, please access and re create the calendar page that way we are testing the same settings.

I have created a test event that repeats each week.

hidden link

January 25, 2023 at 6:13 pm #12892907

jonathanS-28

Bobby, on production I'm seeing the "One more thing left to do..." dialog asking me to upgrade my events, and I don't see that on your staging site. The last time I upgraded events it caused calendar problems so I used the workaround script provided by The Events Calendar to roll that back and have avoided upgrading since. Before I set up your sandbox, does it make sense for you to look at my production site where the actual problem is?

January 25, 2023 at 6:24 pm #12892979

jonathanS-28

Actually Bobby with just a quick set up I do see the same behavior on your staging site: hidden link. Note hovering over a structural link like month, list, etc, includes Spanish words in the URL.

Screen Shot 2023-01-25 at 1.22.23 PM.png
January 25, 2023 at 9:18 pm #12893569

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you, I can reproduce it now. Will update our team and once there is news you will be updated here.

January 26, 2023 at 2:50 pm #12898341

jonathanS-28

Thank you.