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.

Tagged: 

This topic contains 16 replies, has 2 voices.

Last updated by Bruno Kos 8 months, 1 week ago.

Assisted by: Bruno Kos.

Author Posts
March 25, 2024 at 7:46 am

Iga Naskret

Our problem is a potential conflict between WPML and The Events Calendar plugin.
We have a test environment here: hidden link.

Sometimes, we experience an issue, that when changing months, the language of the calendar changes - if you're in Danish Marts and you click the arrow forward, you'd get the E

March 25, 2024 at 8:54 am
March 25, 2024 at 9:01 am #15445152

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

hidden link

Here is the sandbox, can you install Events Calendar here and try reproducing this with one event and category only (unless more is needed)?

We don't need your whole site content, minimum content as possible.

March 27, 2024 at 12:07 pm #15455363

Iga Naskret

Hi Bruno,

I'm still working on replicating the issue in the sandbox, but if I fail, is it even an option for your team to have a look at the staging environment we have instead? I can delete all unnecessary plugins and events from it, of course.

As I said, I am still trying to make it work on the sandbox, but I am finding it a bit difficult to do.

All the best and happy Easter,

March 27, 2024 at 5:01 pm #15457483

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

If it seems too complex to set it up, we could check your site also, but we always tend to check such things in sandbox environment so we can exclude possible interferences from other plugins.

Also this speeds up debugging process.

I extended the sandbox so it will not expire.

Happy Easter as well!

April 3, 2024 at 8:00 am #15476630

Iga Naskret

Hi Bruno,

we're having troubles replicating the issue in the sandbox. While we're working on it, I'd like to ask if you could look at our server in the meantime? The credentials are the same as in the previous message in the thread.

Best regards,

April 3, 2024 at 9:39 am #15477089

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size. You can find more information about the process here: [link](https://wpml.org/faq/provide-supporters-copy-site/). Please confirm if this approach is acceptable to you.

April 3, 2024 at 10:04 am #15477323

Iga Naskret

Yes, very much so.

April 3, 2024 at 10:42 am #15477537

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I am checking with with our 2nd tier and will keep you posted.

April 8, 2024 at 12:53 pm #15494176

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

We are unable to reproduce this locally (maybe because of cache used in in your site which causes this?).

To ensure we are on the same page can you record a video using tool such as hidden link to show the issue?

April 10, 2024 at 6:34 am #15502306

Iga Naskret

Hi Bruno,
here's the recording: hidden link

April 11, 2024 at 7:21 am #15507270

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

The issue occurs because the option "teccc_options" is cached. To resolve this, you can try removing the object caching for the group "options," though it might lead to performance issues. Alternatively, you can use a function to exclude specific options from the cache. Here's how you can proceed:

1. **Remove Object Caching for Specific Group**: Add the following code as a mu-plugin to remove object caching for the "options" group. This might impact performance, so monitor your site after implementing.

<?php
wp_cache_add_non_persistent_groups( [
		'options,
] );

2. **Exclude Specific Options from Cache**: Use the following function to exclude specific options from caching. This approach avoids potential performance issues by targeting a specific option. Implement this by adding the code to your theme's `functions.php` file or as a mu-plugin.

function exclude_teccc_options_from_cache( $pre_option, $option ) {
    // Temporarily remove the filter to prevent infinite loops
    remove_filter( 'pre_option_teccc_options', 'exclude_teccc_options_from_cache', 10 );

    // Directly fetch the option from the database
    $option_value = get_option( 'teccc_options' );

    // Re-add the filter
    add_filter( 'pre_option_teccc_options', 'exclude_teccc_options_from_cache', 10, 2 );

    return $option_value;
}

// Hook into the option retrieval process
add_filter( 'pre_option_teccc_options', 'exclude_teccc_options_from_cache', 10, 2 );

Please monitor your site's performance after applying these changes, as the first method might lead to performance issues.

Can you give it a try and tell us if this works?

April 12, 2024 at 6:11 am #15511365

Iga Naskret

Hi Bruno,

thank you a lot for your reply.

Could you just please clarify for me whether these two points are two steps (we should take both) or two kinds of approaches (we should try them separately)?

Best regards

April 12, 2024 at 6:28 am #15511441

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

It is two kinds of approaches as one may have influence over the site performance.

April 12, 2024 at 12:19 pm #15512823

Iga Naskret

Hi Bruno,

I have tried both approaches. I have kept the caching plugin off and I deleted the browser cache between tries.

Unfortunately, the error persisted.

Is there anything I might've missed?